diff options
author | Christoph Hellwig <hch@lst.de> | 2010-06-04 11:29:54 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-08-09 16:47:30 -0400 |
commit | ea0f04e59543bafb3d2cbe37a0d375acb0bb2c34 (patch) | |
tree | 66a400f5b8e9a01acb72107c72e504325af6fe67 /include/linux/buffer_head.h | |
parent | eafdc7d190a944c755a9fe68573c193e6e0217e7 (diff) | |
download | linux-stable-ea0f04e59543bafb3d2cbe37a0d375acb0bb2c34.tar.gz linux-stable-ea0f04e59543bafb3d2cbe37a0d375acb0bb2c34.tar.bz2 linux-stable-ea0f04e59543bafb3d2cbe37a0d375acb0bb2c34.zip |
get rid of nobh_write_begin_newtrunc
Move the call to vmtruncate to get rid of accessive blocks to the only
remaining caller and rename the non-truncating version to nobh_write_begin.
Get rid of the superflous file argument to it while we're at it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/buffer_head.h')
-rw-r--r-- | include/linux/buffer_head.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/linux/buffer_head.h b/include/linux/buffer_head.h index 1b9ba193b789..cfda5f0b2a4b 100644 --- a/include/linux/buffer_head.h +++ b/include/linux/buffer_head.h @@ -231,11 +231,7 @@ void block_sync_page(struct page *); sector_t generic_block_bmap(struct address_space *, sector_t, get_block_t *); int block_truncate_page(struct address_space *, loff_t, get_block_t *); int file_fsync(struct file *, int); -int nobh_write_begin_newtrunc(struct file *, struct address_space *, - loff_t, unsigned, unsigned, - struct page **, void **, get_block_t*); -int nobh_write_begin(struct file *, struct address_space *, - loff_t, unsigned, unsigned, +int nobh_write_begin(struct address_space *, loff_t, unsigned, unsigned, struct page **, void **, get_block_t*); int nobh_write_end(struct file *, struct address_space *, loff_t, unsigned, unsigned, |