Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 10 Jun 2020 23:09:11 +0000 (16:09 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 10 Jun 2020 23:09:11 +0000 (16:09 -0700)
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

1  2 
fs/namespace.c
fs/super.c

diff --cc fs/namespace.c
@@@ -684,21 -669,14 +684,18 @@@ bool __is_local_mountpoint(struct dentr
        struct mount *mnt;
        bool is_covered = false;
  
-       if (!d_mountpoint(dentry))
-               goto out;
        down_read(&namespace_sem);
 +      lock_ns_list(ns);
        list_for_each_entry(mnt, &ns->list, mnt_list) {
 +              if (mnt_is_cursor(mnt))
 +                      continue;
                is_covered = (mnt->mnt_mountpoint == dentry);
                if (is_covered)
                        break;
        }
 +      unlock_ns_list(ns);
        up_read(&namespace_sem);
- out:
        return is_covered;
  }
  
diff --cc fs/super.c
Simple merge