diff options
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, |