1 #include <linux/mount.h>
9 struct list_head mnt_hash;
10 struct mount *mnt_parent;
11 struct dentry *mnt_mountpoint;
14 struct mnt_pcp __percpu *mnt_pcp;
15 atomic_t mnt_longterm; /* how many of the refs are longterm */
20 struct list_head mnt_mounts; /* list of children, anchored here */
21 struct list_head mnt_child; /* and going through their mnt_child */
22 const char *mnt_devname; /* Name of device e.g. /dev/dsk/hda1 */
23 struct list_head mnt_list;
24 struct list_head mnt_expire; /* link in fs-specific expiry list */
25 struct list_head mnt_share; /* circular list of shared mounts */
26 struct list_head mnt_slave_list;/* list of slave mounts */
27 struct list_head mnt_slave; /* slave list entry */
28 struct mount *mnt_master; /* slave is on master->mnt_slave_list */
29 struct mnt_namespace *mnt_ns; /* containing namespace */
30 #ifdef CONFIG_FSNOTIFY
31 struct hlist_head mnt_fsnotify_marks;
32 __u32 mnt_fsnotify_mask;
34 int mnt_id; /* mount identifier */
35 int mnt_group_id; /* peer group identifier */
36 int mnt_expiry_mark; /* true if marked for expiry */
41 static inline struct mount *real_mount(struct vfsmount *mnt)
43 return container_of(mnt, struct mount, mnt);
46 static inline int mnt_has_parent(struct mount *mnt)
48 return mnt != mnt->mnt_parent;
51 extern struct mount *__lookup_mnt(struct vfsmount *, struct dentry *, int);