diff options
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 9c2ac5c0ef5c..4b86f806014c 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1025,6 +1025,7 @@ extern int send_sigurg(struct fown_struct *fown); | |||
1025 | extern struct list_head super_blocks; | 1025 | extern struct list_head super_blocks; |
1026 | extern spinlock_t sb_lock; | 1026 | extern spinlock_t sb_lock; |
1027 | 1027 | ||
1028 | #define sb_entry(list) list_entry((list), struct super_block, s_list) | ||
1028 | #define S_BIAS (1<<30) | 1029 | #define S_BIAS (1<<30) |
1029 | struct super_block { | 1030 | struct super_block { |
1030 | struct list_head s_list; /* Keep this first */ | 1031 | struct list_head s_list; /* Keep this first */ |
@@ -1058,6 +1059,9 @@ struct super_block { | |||
1058 | struct list_head s_more_io; /* parked for more writeback */ | 1059 | struct list_head s_more_io; /* parked for more writeback */ |
1059 | struct hlist_head s_anon; /* anonymous dentries for (nfs) exporting */ | 1060 | struct hlist_head s_anon; /* anonymous dentries for (nfs) exporting */ |
1060 | struct list_head s_files; | 1061 | struct list_head s_files; |
1062 | /* s_dentry_lru and s_nr_dentry_unused are protected by dcache_lock */ | ||
1063 | struct list_head s_dentry_lru; /* unused dentry lru */ | ||
1064 | int s_nr_dentry_unused; /* # of dentry on lru */ | ||
1061 | 1065 | ||
1062 | struct block_device *s_bdev; | 1066 | struct block_device *s_bdev; |
1063 | struct mtd_info *s_mtd; | 1067 | struct mtd_info *s_mtd; |
@@ -1773,8 +1777,9 @@ static inline void allow_write_access(struct file *file) | |||
1773 | atomic_inc(&file->f_path.dentry->d_inode->i_writecount); | 1777 | atomic_inc(&file->f_path.dentry->d_inode->i_writecount); |
1774 | } | 1778 | } |
1775 | extern int do_pipe(int *); | 1779 | extern int do_pipe(int *); |
1776 | extern struct file *create_read_pipe(struct file *f); | 1780 | extern int do_pipe_flags(int *, int); |
1777 | extern struct file *create_write_pipe(void); | 1781 | extern struct file *create_read_pipe(struct file *f, int flags); |
1782 | extern struct file *create_write_pipe(int flags); | ||
1778 | extern void free_write_pipe(struct file *); | 1783 | extern void free_write_pipe(struct file *); |
1779 | 1784 | ||
1780 | extern struct file *do_filp_open(int dfd, const char *pathname, | 1785 | extern struct file *do_filp_open(int dfd, const char *pathname, |
@@ -2006,8 +2011,6 @@ extern void simple_release_fs(struct vfsmount **mount, int *count); | |||
2006 | 2011 | ||
2007 | extern ssize_t simple_read_from_buffer(void __user *to, size_t count, | 2012 | extern ssize_t simple_read_from_buffer(void __user *to, size_t count, |
2008 | loff_t *ppos, const void *from, size_t available); | 2013 | loff_t *ppos, const void *from, size_t available); |
2009 | extern ssize_t memory_read_from_buffer(void *to, size_t count, loff_t *ppos, | ||
2010 | const void *from, size_t available); | ||
2011 | 2014 | ||
2012 | #ifdef CONFIG_MIGRATION | 2015 | #ifdef CONFIG_MIGRATION |
2013 | extern int buffer_migrate_page(struct address_space *, | 2016 | extern int buffer_migrate_page(struct address_space *, |