diff options
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index e3fc5dbb2246..1bcce660cf03 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -123,6 +123,7 @@ extern int dir_notify_enable; | |||
123 | #define MS_SLAVE (1<<19) /* change to slave */ | 123 | #define MS_SLAVE (1<<19) /* change to slave */ |
124 | #define MS_SHARED (1<<20) /* change to shared */ | 124 | #define MS_SHARED (1<<20) /* change to shared */ |
125 | #define MS_RELATIME (1<<21) /* Update atime relative to mtime/ctime. */ | 125 | #define MS_RELATIME (1<<21) /* Update atime relative to mtime/ctime. */ |
126 | #define MS_KERNMOUNT (1<<22) /* this is a kern_mount call */ | ||
126 | #define MS_ACTIVE (1<<30) | 127 | #define MS_ACTIVE (1<<30) |
127 | #define MS_NOUSER (1<<31) | 128 | #define MS_NOUSER (1<<31) |
128 | 129 | ||
@@ -330,6 +331,7 @@ typedef void (dio_iodone_t)(struct kiocb *iocb, loff_t offset, | |||
330 | #define ATTR_KILL_SGID 4096 | 331 | #define ATTR_KILL_SGID 4096 |
331 | #define ATTR_FILE 8192 | 332 | #define ATTR_FILE 8192 |
332 | #define ATTR_KILL_PRIV 16384 | 333 | #define ATTR_KILL_PRIV 16384 |
334 | #define ATTR_OPEN 32768 /* Truncating from open(O_TRUNC) */ | ||
333 | 335 | ||
334 | /* | 336 | /* |
335 | * This is the Inode Attributes structure, used for notify_change(). It | 337 | * This is the Inode Attributes structure, used for notify_change(). It |
@@ -1458,7 +1460,8 @@ void unnamed_dev_init(void); | |||
1458 | 1460 | ||
1459 | extern int register_filesystem(struct file_system_type *); | 1461 | extern int register_filesystem(struct file_system_type *); |
1460 | extern int unregister_filesystem(struct file_system_type *); | 1462 | extern int unregister_filesystem(struct file_system_type *); |
1461 | extern struct vfsmount *kern_mount(struct file_system_type *); | 1463 | extern struct vfsmount *kern_mount_data(struct file_system_type *, void *data); |
1464 | #define kern_mount(type) kern_mount_data(type, NULL) | ||
1462 | extern int may_umount_tree(struct vfsmount *); | 1465 | extern int may_umount_tree(struct vfsmount *); |
1463 | extern int may_umount(struct vfsmount *); | 1466 | extern int may_umount(struct vfsmount *); |
1464 | extern void umount_tree(struct vfsmount *, int, struct list_head *); | 1467 | extern void umount_tree(struct vfsmount *, int, struct list_head *); |
@@ -1533,7 +1536,7 @@ static inline int break_lease(struct inode *inode, unsigned int mode) | |||
1533 | 1536 | ||
1534 | extern int do_truncate(struct dentry *, loff_t start, unsigned int time_attrs, | 1537 | extern int do_truncate(struct dentry *, loff_t start, unsigned int time_attrs, |
1535 | struct file *filp); | 1538 | struct file *filp); |
1536 | extern long do_sys_open(int fdf, const char __user *filename, int flags, | 1539 | extern long do_sys_open(int dfd, const char __user *filename, int flags, |
1537 | int mode); | 1540 | int mode); |
1538 | extern struct file *filp_open(const char *, int, int); | 1541 | extern struct file *filp_open(const char *, int, int); |
1539 | extern struct file * dentry_open(struct dentry *, struct vfsmount *, int); | 1542 | extern struct file * dentry_open(struct dentry *, struct vfsmount *, int); |
@@ -1921,6 +1924,8 @@ extern int vfs_fstat(unsigned int, struct kstat *); | |||
1921 | 1924 | ||
1922 | extern int vfs_ioctl(struct file *, unsigned int, unsigned int, unsigned long); | 1925 | extern int vfs_ioctl(struct file *, unsigned int, unsigned int, unsigned long); |
1923 | 1926 | ||
1927 | extern void get_filesystem(struct file_system_type *fs); | ||
1928 | extern void put_filesystem(struct file_system_type *fs); | ||
1924 | extern struct file_system_type *get_fs_type(const char *name); | 1929 | extern struct file_system_type *get_fs_type(const char *name); |
1925 | extern struct super_block *get_super(struct block_device *); | 1930 | extern struct super_block *get_super(struct block_device *); |
1926 | extern struct super_block *user_get_super(dev_t); | 1931 | extern struct super_block *user_get_super(dev_t); |