Skip to content

Commit 4dbb29f

Browse files
committed
Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull vfs fixes from Al Viro: "A couple of trivial patches that fell through the cracks last cycle" * 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: fs: fix indentation in deactivate_super() vfs: Remove duplicated d_mountpoint check in __is_local_mountpoint
2 parents 1c38372 + cc23402 commit 4dbb29f

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

fs/namespace.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -684,9 +684,6 @@ bool __is_local_mountpoint(struct dentry *dentry)
684684
struct mount *mnt;
685685
bool is_covered = false;
686686

687-
if (!d_mountpoint(dentry))
688-
goto out;
689-
690687
down_read(&namespace_sem);
691688
lock_ns_list(ns);
692689
list_for_each_entry(mnt, &ns->list, mnt_list) {
@@ -698,7 +695,7 @@ bool __is_local_mountpoint(struct dentry *dentry)
698695
}
699696
unlock_ns_list(ns);
700697
up_read(&namespace_sem);
701-
out:
698+
702699
return is_covered;
703700
}
704701

fs/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ EXPORT_SYMBOL(deactivate_locked_super);
361361
*/
362362
void deactivate_super(struct super_block *s)
363363
{
364-
if (!atomic_add_unless(&s->s_active, -1, 1)) {
364+
if (!atomic_add_unless(&s->s_active, -1, 1)) {
365365
down_write(&s->s_umount);
366366
deactivate_locked_super(s);
367367
}

0 commit comments

Comments
 (0)