diff options
-rw-r--r-- | fs/mount.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/mount.h b/fs/mount.h index 64a858143ff9..68d80bdcd081 100644 --- a/fs/mount.h +++ b/fs/mount.h | |||
@@ -73,7 +73,7 @@ static inline int mnt_has_parent(struct mount *mnt) | |||
73 | static inline int is_mounted(struct vfsmount *mnt) | 73 | static inline int is_mounted(struct vfsmount *mnt) |
74 | { | 74 | { |
75 | /* neither detached nor internal? */ | 75 | /* neither detached nor internal? */ |
76 | return !IS_ERR_OR_NULL(real_mount(mnt)); | 76 | return !IS_ERR_OR_NULL(real_mount(mnt)->mnt_ns); |
77 | } | 77 | } |
78 | 78 | ||
79 | extern struct mount *__lookup_mnt(struct vfsmount *, struct dentry *, int); | 79 | extern struct mount *__lookup_mnt(struct vfsmount *, struct dentry *, int); |