VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Eric W. Biederman <ebiederm@xmission.com> 2016-05-27 14:50:05 -0500 committer: Eric W. Biederman <ebiederm@xmission.com> 2016-06-06 20:52:03 -0500 commit: d71ed6c930ac7d8f88f3cef6624a7e826392d61f parent: 97c1df3e54e811aed484a036a798b4b25d002ecf
Commit Summary:
mnt: fs_fully_visible test the proper mount for MNT_LOCKED
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/namespace.c b/fs/namespace.c
index 9d45c8a3414f..a7ec92c051f5 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -3273,7 +3273,7 @@ static bool fs_fully_visible(struct file_system_type *type, int *new_mnt_flags)
 		list_for_each_entry(child, &mnt->mnt_mounts, mnt_child) {
 			struct inode *inode = child->mnt_mountpoint->d_inode;
 			/* Only worry about locked mounts */
-			if (!(mnt_flags & MNT_LOCKED))
+			if (!(child->mnt.mnt_flags & MNT_LOCKED))
 				continue;
 			/* Is the directory permanetly empty? */
 			if (!is_empty_dir_inode(inode))