mount.h 347 B

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