diff options
Diffstat (limited to '')
| -rw-r--r-- | include/linux/mount.h | 13 | 
1 files changed, 10 insertions, 3 deletions
| diff --git a/include/linux/mount.h b/include/linux/mount.h index 839bac270904..9262e4bf0cc3 100644 --- a/include/linux/mount.h +++ b/include/linux/mount.h @@ -42,13 +42,20 @@ struct mnt_namespace;   * flag, consider how it interacts with shared mounts.   */  #define MNT_SHARED_MASK	(MNT_UNBINDABLE) -#define MNT_PROPAGATION_MASK	(MNT_SHARED | MNT_UNBINDABLE) +#define MNT_USER_SETTABLE_MASK  (MNT_NOSUID | MNT_NODEV | MNT_NOEXEC \ +				 | MNT_NOATIME | MNT_NODIRATIME | MNT_RELATIME \ +				 | MNT_READONLY) +#define MNT_ATIME_MASK (MNT_NOATIME | MNT_NODIRATIME | MNT_RELATIME )  #define MNT_INTERNAL_FLAGS (MNT_SHARED | MNT_WRITE_HOLD | MNT_INTERNAL | \  			    MNT_DOOMED | MNT_SYNC_UMOUNT | MNT_MARKED)  #define MNT_INTERNAL	0x4000 +#define MNT_LOCK_ATIME		0x040000 +#define MNT_LOCK_NOEXEC		0x080000 +#define MNT_LOCK_NOSUID		0x100000 +#define MNT_LOCK_NODEV		0x200000  #define MNT_LOCK_READONLY	0x400000  #define MNT_LOCKED		0x800000  #define MNT_DOOMED		0x1000000 @@ -62,6 +69,7 @@ struct vfsmount {  };  struct file; /* forward dec */ +struct path;  extern int mnt_want_write(struct vfsmount *mnt);  extern int mnt_want_write_file(struct file *file); @@ -70,8 +78,7 @@ extern void mnt_drop_write(struct vfsmount *mnt);  extern void mnt_drop_write_file(struct file *file);  extern void mntput(struct vfsmount *mnt);  extern struct vfsmount *mntget(struct vfsmount *mnt); -extern void mnt_pin(struct vfsmount *mnt); -extern void mnt_unpin(struct vfsmount *mnt); +extern struct vfsmount *mnt_clone_internal(struct path *path);  extern int __mnt_is_readonly(struct vfsmount *mnt);  struct file_system_type; | 
