Blame view
fs/mount.h
2.03 KB
b2dba1af3 vfs: new internal... |
1 |
#include <linux/mount.h> |
0226f4923 vfs: take /proc/*... |
2 3 4 5 6 |
#include <linux/seq_file.h> #include <linux/poll.h> struct mnt_namespace { atomic_t count; |
be08d6d26 switch mnt_namesp... |
7 |
struct mount * root; |
0226f4923 vfs: take /proc/*... |
8 9 10 11 |
struct list_head list; wait_queue_head_t poll; int event; }; |
b2dba1af3 vfs: new internal... |
12 |
|
68e8a9fea vfs: all counters... |
13 14 15 16 |
struct mnt_pcp { int mnt_count; int mnt_writers; }; |
7d6fec45a vfs: start hiding... |
17 |
struct mount { |
1b8e5564b vfs: the first sp... |
18 |
struct list_head mnt_hash; |
0714a5338 vfs: now it can b... |
19 |
struct mount *mnt_parent; |
a73324da7 vfs: move mnt_mou... |
20 |
struct dentry *mnt_mountpoint; |
7d6fec45a vfs: start hiding... |
21 |
struct vfsmount mnt; |
68e8a9fea vfs: all counters... |
22 23 24 25 26 27 28 |
#ifdef CONFIG_SMP struct mnt_pcp __percpu *mnt_pcp; atomic_t mnt_longterm; /* how many of the refs are longterm */ #else int mnt_count; int mnt_writers; #endif |
6b41d536f vfs: take mnt_chi... |
29 30 |
struct list_head mnt_mounts; /* list of children, anchored here */ struct list_head mnt_child; /* and going through their mnt_child */ |
39f7c4db1 vfs: keep list of... |
31 |
struct list_head mnt_instance; /* mount instance on sb->s_mounts */ |
52ba1621d vfs: move mnt_dev... |
32 |
const char *mnt_devname; /* Name of device e.g. /dev/dsk/hda1 */ |
1a4eeaf2a vfs: move mnt_lis... |
33 |
struct list_head mnt_list; |
6776db3d3 vfs: take mnt_sha... |
34 35 36 37 |
struct list_head mnt_expire; /* link in fs-specific expiry list */ struct list_head mnt_share; /* circular list of shared mounts */ struct list_head mnt_slave_list;/* list of slave mounts */ struct list_head mnt_slave; /* slave list entry */ |
32301920f vfs: and now we c... |
38 |
struct mount *mnt_master; /* slave is on master->mnt_slave_list */ |
143c8c91c vfs: mnt_ns moved... |
39 |
struct mnt_namespace *mnt_ns; /* containing namespace */ |
c63181e6b vfs: move fsnotif... |
40 41 42 43 |
#ifdef CONFIG_FSNOTIFY struct hlist_head mnt_fsnotify_marks; __u32 mnt_fsnotify_mask; #endif |
15169fe78 vfs: mnt_id/mnt_g... |
44 45 |
int mnt_id; /* mount identifier */ int mnt_group_id; /* peer group identifier */ |
863d684f9 vfs: move the res... |
46 47 48 |
int mnt_expiry_mark; /* true if marked for expiry */ int mnt_pinned; int mnt_ghosts; |
7d6fec45a vfs: start hiding... |
49 50 51 52 53 54 |
}; static inline struct mount *real_mount(struct vfsmount *mnt) { return container_of(mnt, struct mount, mnt); } |
676da58df vfs: spread struc... |
55 |
static inline int mnt_has_parent(struct mount *mnt) |
b2dba1af3 vfs: new internal... |
56 |
{ |
0714a5338 vfs: now it can b... |
57 |
return mnt != mnt->mnt_parent; |
b2dba1af3 vfs: new internal... |
58 |
} |
c71053659 vfs: spread struc... |
59 60 |
extern struct mount *__lookup_mnt(struct vfsmount *, struct dentry *, int); |
0226f4923 vfs: take /proc/*... |
61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
static inline void get_mnt_ns(struct mnt_namespace *ns) { atomic_inc(&ns->count); } struct proc_mounts { struct seq_file m; /* must be the first element */ struct mnt_namespace *ns; struct path root; int (*show)(struct seq_file *, struct vfsmount *); }; extern const struct seq_operations mounts_op; |