aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namespace.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/namespace.c')
-rw-r--r--fs/namespace.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index 1d4a97c573e0..c40b48cd7647 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -3194,9 +3194,8 @@ bool fs_fully_visible(struct file_system_type *type)
3194 /* Only worry about locked mounts */ 3194 /* Only worry about locked mounts */
3195 if (!(mnt->mnt.mnt_flags & MNT_LOCKED)) 3195 if (!(mnt->mnt.mnt_flags & MNT_LOCKED))
3196 continue; 3196 continue;
3197 if (!S_ISDIR(inode->i_mode)) 3197 /* Is the directory permanetly empty? */
3198 goto next; 3198 if (!is_empty_dir_inode(inode))
3199 if (inode->i_nlink > 2)
3200 goto next; 3199 goto next;
3201 } 3200 }
3202 visible = true; 3201 visible = true;