aboutsummaryrefslogtreecommitdiffstats
path: root/fs/pnode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/pnode.c')
-rw-r--r--fs/pnode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/pnode.c b/fs/pnode.c
index d42514e32380..f1cd958b92e5 100644
--- a/fs/pnode.c
+++ b/fs/pnode.c
@@ -36,7 +36,7 @@ static inline struct vfsmount *next_slave(struct vfsmount *p)
36static bool is_path_reachable(struct vfsmount *mnt, struct dentry *dentry, 36static bool is_path_reachable(struct vfsmount *mnt, struct dentry *dentry,
37 const struct path *root) 37 const struct path *root)
38{ 38{
39 while (mnt != root->mnt && mnt->mnt_parent != mnt) { 39 while (mnt != root->mnt && mnt_has_parent(mnt)) {
40 dentry = mnt->mnt_mountpoint; 40 dentry = mnt->mnt_mountpoint;
41 mnt = mnt->mnt_parent; 41 mnt = mnt->mnt_parent;
42 } 42 }