aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index a1ba005d08e7..d8e2762ed14d 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -83,6 +83,7 @@ extern int dir_notify_enable;
83#define READ_SYNC (READ | (1 << BIO_RW_SYNC)) 83#define READ_SYNC (READ | (1 << BIO_RW_SYNC))
84#define READ_META (READ | (1 << BIO_RW_META)) 84#define READ_META (READ | (1 << BIO_RW_META))
85#define WRITE_SYNC (WRITE | (1 << BIO_RW_SYNC)) 85#define WRITE_SYNC (WRITE | (1 << BIO_RW_SYNC))
86#define SWRITE_SYNC (SWRITE | (1 << BIO_RW_SYNC))
86#define WRITE_BARRIER ((1 << BIO_RW) | (1 << BIO_RW_BARRIER)) 87#define WRITE_BARRIER ((1 << BIO_RW) | (1 << BIO_RW_BARRIER))
87 88
88#define SEL_IN 1 89#define SEL_IN 1
@@ -894,8 +895,6 @@ static inline int file_check_writeable(struct file *filp)
894typedef struct files_struct *fl_owner_t; 895typedef struct files_struct *fl_owner_t;
895 896
896struct file_lock_operations { 897struct file_lock_operations {
897 void (*fl_insert)(struct file_lock *); /* lock insertion callback */
898 void (*fl_remove)(struct file_lock *); /* lock removal callback */
899 void (*fl_copy_lock)(struct file_lock *, struct file_lock *); 898 void (*fl_copy_lock)(struct file_lock *, struct file_lock *);
900 void (*fl_release_private)(struct file_lock *); 899 void (*fl_release_private)(struct file_lock *);
901}; 900};
@@ -1289,17 +1288,12 @@ extern ssize_t vfs_readv(struct file *, const struct iovec __user *,
1289extern ssize_t vfs_writev(struct file *, const struct iovec __user *, 1288extern ssize_t vfs_writev(struct file *, const struct iovec __user *,
1290 unsigned long, loff_t *); 1289 unsigned long, loff_t *);
1291 1290
1292/*
1293 * NOTE: write_inode, delete_inode, clear_inode, put_inode can be called
1294 * without the big kernel lock held in all filesystems.
1295 */
1296struct super_operations { 1291struct super_operations {
1297 struct inode *(*alloc_inode)(struct super_block *sb); 1292 struct inode *(*alloc_inode)(struct super_block *sb);
1298 void (*destroy_inode)(struct inode *); 1293 void (*destroy_inode)(struct inode *);
1299 1294
1300 void (*dirty_inode) (struct inode *); 1295 void (*dirty_inode) (struct inode *);
1301 int (*write_inode) (struct inode *, int); 1296 int (*write_inode) (struct inode *, int);
1302 void (*put_inode) (struct inode *);
1303 void (*drop_inode) (struct inode *); 1297 void (*drop_inode) (struct inode *);
1304 void (*delete_inode) (struct inode *); 1298 void (*delete_inode) (struct inode *);
1305 void (*put_super) (struct super_block *); 1299 void (*put_super) (struct super_block *);
@@ -1821,7 +1815,6 @@ extern void iget_failed(struct inode *);
1821extern void clear_inode(struct inode *); 1815extern void clear_inode(struct inode *);
1822extern void destroy_inode(struct inode *); 1816extern void destroy_inode(struct inode *);
1823extern struct inode *new_inode(struct super_block *); 1817extern struct inode *new_inode(struct super_block *);
1824extern int __remove_suid(struct dentry *, int);
1825extern int should_remove_suid(struct dentry *); 1818extern int should_remove_suid(struct dentry *);
1826extern int remove_suid(struct dentry *); 1819extern int remove_suid(struct dentry *);
1827 1820
@@ -2006,7 +1999,10 @@ extern int simple_fill_super(struct super_block *, int, struct tree_descr *);
2006extern int simple_pin_fs(struct file_system_type *, struct vfsmount **mount, int *count); 1999extern int simple_pin_fs(struct file_system_type *, struct vfsmount **mount, int *count);
2007extern void simple_release_fs(struct vfsmount **mount, int *count); 2000extern void simple_release_fs(struct vfsmount **mount, int *count);
2008 2001
2009extern ssize_t simple_read_from_buffer(void __user *, size_t, loff_t *, const void *, size_t); 2002extern ssize_t simple_read_from_buffer(void __user *to, size_t count,
2003 loff_t *ppos, const void *from, size_t available);
2004extern ssize_t memory_read_from_buffer(void *to, size_t count, loff_t *ppos,
2005 const void *from, size_t available);
2010 2006
2011#ifdef CONFIG_MIGRATION 2007#ifdef CONFIG_MIGRATION
2012extern int buffer_migrate_page(struct address_space *, 2008extern int buffer_migrate_page(struct address_space *,