vfs: move mnt_devname
[deliverable/linux.git] / fs / mount.h
1 #include <linux/mount.h>
2
3 struct mnt_pcp {
4 int mnt_count;
5 int mnt_writers;
6 };
7
8 struct mount {
9 struct list_head mnt_hash;
10 struct mount *mnt_parent;
11 struct dentry *mnt_mountpoint;
12 struct vfsmount mnt;
13 #ifdef CONFIG_SMP
14 struct mnt_pcp __percpu *mnt_pcp;
15 atomic_t mnt_longterm; /* how many of the refs are longterm */
16 #else
17 int mnt_count;
18 int mnt_writers;
19 #endif
20 struct list_head mnt_mounts; /* list of children, anchored here */
21 struct list_head mnt_child; /* and going through their mnt_child */
22 /* yet to be moved - fsnotify ones go here */
23 const char *mnt_devname; /* Name of device e.g. /dev/dsk/hda1 */
24 struct list_head mnt_list;
25 struct list_head mnt_expire; /* link in fs-specific expiry list */
26 struct list_head mnt_share; /* circular list of shared mounts */
27 struct list_head mnt_slave_list;/* list of slave mounts */
28 struct list_head mnt_slave; /* slave list entry */
29 struct mount *mnt_master; /* slave is on master->mnt_slave_list */
30 struct mnt_namespace *mnt_ns; /* containing namespace */
31 int mnt_id; /* mount identifier */
32 int mnt_group_id; /* peer group identifier */
33 int mnt_expiry_mark; /* true if marked for expiry */
34 int mnt_pinned;
35 int mnt_ghosts;
36 };
37
38 static inline struct mount *real_mount(struct vfsmount *mnt)
39 {
40 return container_of(mnt, struct mount, mnt);
41 }
42
43 static inline int mnt_has_parent(struct mount *mnt)
44 {
45 return mnt != mnt->mnt_parent;
46 }
47
48 extern struct mount *__lookup_mnt(struct vfsmount *, struct dentry *, int);
This page took 0.053967 seconds and 6 git commands to generate.