diff options
Diffstat (limited to 'fs/minix/inode.c')
-rw-r--r-- | fs/minix/inode.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/fs/minix/inode.c b/fs/minix/inode.c index 756f8c93780c..f4abe45229bb 100644 --- a/fs/minix/inode.c +++ b/fs/minix/inode.c | |||
@@ -357,12 +357,10 @@ static int minix_readpage(struct file *file, struct page *page) | |||
357 | return block_read_full_page(page,minix_get_block); | 357 | return block_read_full_page(page,minix_get_block); |
358 | } | 358 | } |
359 | 359 | ||
360 | int __minix_write_begin(struct file *file, struct address_space *mapping, | 360 | int minix_prepare_chunk(struct page *page, loff_t pos, unsigned len) |
361 | loff_t pos, unsigned len, unsigned flags, | ||
362 | struct page **pagep, void **fsdata) | ||
363 | { | 361 | { |
364 | return block_write_begin(file, mapping, pos, len, flags, pagep, fsdata, | 362 | return block_write_begin_newtrunc(NULL, page->mapping, pos, len, 0, |
365 | minix_get_block); | 363 | &page, NULL, minix_get_block); |
366 | } | 364 | } |
367 | 365 | ||
368 | static int minix_write_begin(struct file *file, struct address_space *mapping, | 366 | static int minix_write_begin(struct file *file, struct address_space *mapping, |
@@ -370,7 +368,8 @@ static int minix_write_begin(struct file *file, struct address_space *mapping, | |||
370 | struct page **pagep, void **fsdata) | 368 | struct page **pagep, void **fsdata) |
371 | { | 369 | { |
372 | *pagep = NULL; | 370 | *pagep = NULL; |
373 | return __minix_write_begin(file, mapping, pos, len, flags, pagep, fsdata); | 371 | return block_write_begin(file, mapping, pos, len, flags, pagep, fsdata, |
372 | minix_get_block); | ||
374 | } | 373 | } |
375 | 374 | ||
376 | static sector_t minix_bmap(struct address_space *mapping, sector_t block) | 375 | static sector_t minix_bmap(struct address_space *mapping, sector_t block) |