diff options
Diffstat (limited to 'include/linux/mount.h')
| -rw-r--r-- | include/linux/mount.h | 39 |
1 files changed, 1 insertions, 38 deletions
diff --git a/include/linux/mount.h b/include/linux/mount.h index 33fe53d78110..d7029f4a191a 100644 --- a/include/linux/mount.h +++ b/include/linux/mount.h | |||
| @@ -47,45 +47,10 @@ struct mnt_namespace; | |||
| 47 | 47 | ||
| 48 | #define MNT_INTERNAL 0x4000 | 48 | #define MNT_INTERNAL 0x4000 |
| 49 | 49 | ||
| 50 | struct mnt_pcp { | ||
| 51 | int mnt_count; | ||
| 52 | int mnt_writers; | ||
| 53 | }; | ||
| 54 | |||
| 55 | struct vfsmount { | 50 | struct vfsmount { |
| 56 | struct list_head mnt_hash; | ||
| 57 | struct vfsmount *mnt_parent; /* fs we are mounted on */ | ||
| 58 | struct dentry *mnt_mountpoint; /* dentry of mountpoint */ | ||
| 59 | struct dentry *mnt_root; /* root of the mounted tree */ | 51 | struct dentry *mnt_root; /* root of the mounted tree */ |
| 60 | struct super_block *mnt_sb; /* pointer to superblock */ | 52 | struct super_block *mnt_sb; /* pointer to superblock */ |
| 61 | #ifdef CONFIG_SMP | ||
| 62 | struct mnt_pcp __percpu *mnt_pcp; | ||
| 63 | atomic_t mnt_longterm; /* how many of the refs are longterm */ | ||
| 64 | #else | ||
| 65 | int mnt_count; | ||
| 66 | int mnt_writers; | ||
| 67 | #endif | ||
| 68 | struct list_head mnt_mounts; /* list of children, anchored here */ | ||
| 69 | struct list_head mnt_child; /* and going through their mnt_child */ | ||
| 70 | int mnt_flags; | 53 | int mnt_flags; |
| 71 | /* 4 bytes hole on 64bits arches without fsnotify */ | ||
| 72 | #ifdef CONFIG_FSNOTIFY | ||
| 73 | __u32 mnt_fsnotify_mask; | ||
| 74 | struct hlist_head mnt_fsnotify_marks; | ||
| 75 | #endif | ||
| 76 | const char *mnt_devname; /* Name of device e.g. /dev/dsk/hda1 */ | ||
| 77 | struct list_head mnt_list; | ||
| 78 | struct list_head mnt_expire; /* link in fs-specific expiry list */ | ||
| 79 | struct list_head mnt_share; /* circular list of shared mounts */ | ||
| 80 | struct list_head mnt_slave_list;/* list of slave mounts */ | ||
| 81 | struct list_head mnt_slave; /* slave list entry */ | ||
| 82 | struct vfsmount *mnt_master; /* slave is on master->mnt_slave_list */ | ||
| 83 | struct mnt_namespace *mnt_ns; /* containing namespace */ | ||
| 84 | int mnt_id; /* mount identifier */ | ||
| 85 | int mnt_group_id; /* peer group identifier */ | ||
| 86 | int mnt_expiry_mark; /* true if marked for expiry */ | ||
| 87 | int mnt_pinned; | ||
| 88 | int mnt_ghosts; | ||
| 89 | }; | 54 | }; |
| 90 | 55 | ||
| 91 | struct file; /* forward dec */ | 56 | struct file; /* forward dec */ |
| @@ -94,15 +59,13 @@ extern int mnt_want_write(struct vfsmount *mnt); | |||
| 94 | extern int mnt_want_write_file(struct file *file); | 59 | extern int mnt_want_write_file(struct file *file); |
| 95 | extern int mnt_clone_write(struct vfsmount *mnt); | 60 | extern int mnt_clone_write(struct vfsmount *mnt); |
| 96 | extern void mnt_drop_write(struct vfsmount *mnt); | 61 | extern void mnt_drop_write(struct vfsmount *mnt); |
| 62 | extern void mnt_drop_write_file(struct file *file); | ||
| 97 | extern void mntput(struct vfsmount *mnt); | 63 | extern void mntput(struct vfsmount *mnt); |
| 98 | extern struct vfsmount *mntget(struct vfsmount *mnt); | 64 | extern struct vfsmount *mntget(struct vfsmount *mnt); |
| 99 | extern void mnt_pin(struct vfsmount *mnt); | 65 | extern void mnt_pin(struct vfsmount *mnt); |
| 100 | extern void mnt_unpin(struct vfsmount *mnt); | 66 | extern void mnt_unpin(struct vfsmount *mnt); |
| 101 | extern int __mnt_is_readonly(struct vfsmount *mnt); | 67 | extern int __mnt_is_readonly(struct vfsmount *mnt); |
| 102 | 68 | ||
| 103 | extern struct vfsmount *do_kern_mount(const char *fstype, int flags, | ||
| 104 | const char *name, void *data); | ||
| 105 | |||
| 106 | struct file_system_type; | 69 | struct file_system_type; |
| 107 | extern struct vfsmount *vfs_kern_mount(struct file_system_type *type, | 70 | extern struct vfsmount *vfs_kern_mount(struct file_system_type *type, |
| 108 | int flags, const char *name, | 71 | int flags, const char *name, |
