diff options
author | Christoph Hellwig <hch@lst.de> | 2010-06-04 05:29:58 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-08-09 16:47:33 -0400 |
commit | 155130a4f7848b1aac439cab6bda1a175507c71c (patch) | |
tree | 5019b14b0a9221b08959196e01e3f9326957d678 /fs/block_dev.c | |
parent | 6e1db88d536adcbbfe562b2d4b7d6425784fff12 (diff) |
get rid of block_write_begin_newtrunc
Move the call to vmtruncate to get rid of accessive blocks to the callers
in preparation of the new truncate sequence and rename the non-truncating
version to block_write_begin.
While we're at it also remove several unused arguments to block_write_begin.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/block_dev.c')
-rw-r--r-- | fs/block_dev.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c index 65a0c26508e5..63c9d6076205 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c | |||
@@ -308,9 +308,8 @@ static int blkdev_write_begin(struct file *file, struct address_space *mapping, | |||
308 | loff_t pos, unsigned len, unsigned flags, | 308 | loff_t pos, unsigned len, unsigned flags, |
309 | struct page **pagep, void **fsdata) | 309 | struct page **pagep, void **fsdata) |
310 | { | 310 | { |
311 | *pagep = NULL; | 311 | return block_write_begin(mapping, pos, len, flags, pagep, |
312 | return block_write_begin_newtrunc(file, mapping, pos, len, flags, | 312 | blkdev_get_block); |
313 | pagep, fsdata, blkdev_get_block); | ||
314 | } | 313 | } |
315 | 314 | ||
316 | static int blkdev_write_end(struct file *file, struct address_space *mapping, | 315 | static int blkdev_write_end(struct file *file, struct address_space *mapping, |