ext4: check EA value offset when loading
[firefly-linux-kernel-4.4.55.git] / fs / mount.h
index 64a858143ff923ab80499d5a865bde9de2257314..68d80bdcd0819cf071029d99a0eefd6e02747942 100644 (file)
@@ -73,7 +73,7 @@ static inline int mnt_has_parent(struct mount *mnt)
 static inline int is_mounted(struct vfsmount *mnt)
 {
        /* neither detached nor internal? */
-       return !IS_ERR_OR_NULL(real_mount(mnt));
+       return !IS_ERR_OR_NULL(real_mount(mnt)->mnt_ns);
 }
 
 extern struct mount *__lookup_mnt(struct vfsmount *, struct dentry *, int);