mount.h 408 B

12345678910111213141516171819
  1. #include <linux/mount.h>
  2. struct mount {
  3. struct list_head mnt_hash;
  4. struct vfsmount *mnt_parent;
  5. struct vfsmount mnt;
  6. };
  7. static inline struct mount *real_mount(struct vfsmount *mnt)
  8. {
  9. return container_of(mnt, struct mount, mnt);
  10. }
  11. static inline int mnt_has_parent(struct mount *mnt)
  12. {
  13. return &mnt->mnt != mnt->mnt_parent;
  14. }
  15. extern struct mount *__lookup_mnt(struct vfsmount *, struct dentry *, int);