diff options
| author | Christoph Hellwig <hch@lst.de> | 2010-10-06 04:47:23 -0400 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-10-25 21:18:20 -0400 |
| commit | ebdec241d509cf69f6ebf1ecdc036359d3dbe154 (patch) | |
| tree | e3c23f9b213936cb8501c83f55522a01f4a69aca /include/linux | |
| parent | 56b0dacfa2b8416815a2f2a5f4f51e46be4cf14c (diff) | |
fs: kill block_prepare_write
__block_write_begin and block_prepare_write are identical except for slightly
different calling conventions. Convert all callers to the __block_write_begin
calling conventions and drop block_prepare_write.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/buffer_head.h | 1 | ||||
| -rw-r--r-- | include/linux/reiserfs_fs.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/buffer_head.h b/include/linux/buffer_head.h index dd1b25b2641..68d1fe7b877 100644 --- a/include/linux/buffer_head.h +++ b/include/linux/buffer_head.h | |||
| @@ -212,7 +212,6 @@ int generic_write_end(struct file *, struct address_space *, | |||
| 212 | loff_t, unsigned, unsigned, | 212 | loff_t, unsigned, unsigned, |
| 213 | struct page *, void *); | 213 | struct page *, void *); |
| 214 | void page_zero_new_buffers(struct page *page, unsigned from, unsigned to); | 214 | void page_zero_new_buffers(struct page *page, unsigned from, unsigned to); |
| 215 | int block_prepare_write(struct page*, unsigned, unsigned, get_block_t*); | ||
| 216 | int cont_write_begin(struct file *, struct address_space *, loff_t, | 215 | int cont_write_begin(struct file *, struct address_space *, loff_t, |
| 217 | unsigned, unsigned, struct page **, void **, | 216 | unsigned, unsigned, struct page **, void **, |
| 218 | get_block_t *, loff_t *); | 217 | get_block_t *, loff_t *); |
diff --git a/include/linux/reiserfs_fs.h b/include/linux/reiserfs_fs.h index 91a4177e60c..5ca47e59b72 100644 --- a/include/linux/reiserfs_fs.h +++ b/include/linux/reiserfs_fs.h | |||
| @@ -2072,6 +2072,8 @@ void sd_attrs_to_i_attrs(__u16 sd_attrs, struct inode *inode); | |||
| 2072 | void i_attrs_to_sd_attrs(struct inode *inode, __u16 * sd_attrs); | 2072 | void i_attrs_to_sd_attrs(struct inode *inode, __u16 * sd_attrs); |
| 2073 | int reiserfs_setattr(struct dentry *dentry, struct iattr *attr); | 2073 | int reiserfs_setattr(struct dentry *dentry, struct iattr *attr); |
| 2074 | 2074 | ||
| 2075 | int __reiserfs_write_begin(struct page *page, unsigned from, unsigned len); | ||
| 2076 | |||
| 2075 | /* namei.c */ | 2077 | /* namei.c */ |
| 2076 | void set_de_name_and_namelen(struct reiserfs_dir_entry *de); | 2078 | void set_de_name_and_namelen(struct reiserfs_dir_entry *de); |
| 2077 | int search_by_entry_key(struct super_block *sb, const struct cpu_key *key, | 2079 | int search_by_entry_key(struct super_block *sb, const struct cpu_key *key, |
