@@ -389,21 +389,18 @@ static void ocfs2_readahead(struct readahead_control *rac)
389
389
/* Note: Because we don't support holes, our allocation has
390
390
* already happened (allocation writes zeros to the file data)
391
391
* so we don't have to worry about ordered writes in
392
- * ocfs2_writepage .
392
+ * ocfs2_writepages .
393
393
*
394
- * ->writepage is called during the process of invalidating the page cache
394
+ * ->writepages is called during the process of invalidating the page cache
395
395
* during blocked lock processing. It can't block on any cluster locks
396
396
* to during block mapping. It's relying on the fact that the block
397
397
* mapping can't have disappeared under the dirty pages that it is
398
398
* being asked to write back.
399
399
*/
400
- static int ocfs2_writepage (struct page * page , struct writeback_control * wbc )
400
+ static int ocfs2_writepages (struct address_space * mapping ,
401
+ struct writeback_control * wbc )
401
402
{
402
- trace_ocfs2_writepage (
403
- (unsigned long long )OCFS2_I (page -> mapping -> host )-> ip_blkno ,
404
- page -> index );
405
-
406
- return block_write_full_page (page , ocfs2_get_block , wbc );
403
+ return mpage_writepages (mapping , wbc , ocfs2_get_block );
407
404
}
408
405
409
406
/* Taken from ext3. We don't necessarily need the full blown
@@ -2471,7 +2468,7 @@ const struct address_space_operations ocfs2_aops = {
2471
2468
.dirty_folio = block_dirty_folio ,
2472
2469
.read_folio = ocfs2_read_folio ,
2473
2470
.readahead = ocfs2_readahead ,
2474
- .writepage = ocfs2_writepage ,
2471
+ .writepages = ocfs2_writepages ,
2475
2472
.write_begin = ocfs2_write_begin ,
2476
2473
.write_end = ocfs2_write_end ,
2477
2474
.bmap = ocfs2_bmap ,
0 commit comments