|
@@ -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) {
|
|
list_for_each_entry(child, &mnt->mnt_mounts, mnt_child) {
|
|
struct inode *inode = child->mnt_mountpoint->d_inode;
|
|
struct inode *inode = child->mnt_mountpoint->d_inode;
|
|
/* Only worry about locked mounts */
|
|
/* Only worry about locked mounts */
|
|
- if (!(mnt_flags & MNT_LOCKED))
|
|
|
|
|
|
+ if (!(child->mnt.mnt_flags & MNT_LOCKED))
|
|
continue;
|
|
continue;
|
|
/* Is the directory permanetly empty? */
|
|
/* Is the directory permanetly empty? */
|
|
if (!is_empty_dir_inode(inode))
|
|
if (!is_empty_dir_inode(inode))
|