Skip to content

Commit f2d3e57

Browse files
Christoph HellwigMatthew Wilcox (Oracle)
authored andcommitted
fs: don't call ->writepage from __mpage_writepage
All callers of mpage_writepage use block_write_full_page as their ->writepage implementation when called from mpage_writepages (although for ntfs3 this is obsfucated a bit). Just call block_write_full_page directly instead of going through the ->writepage indirection. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
1 parent cc9cf35 commit f2d3e57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/mpage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ static int __mpage_writepage(struct page *page, struct writeback_control *wbc,
626626
/*
627627
* The caller has a ref on the inode, so *mapping is stable
628628
*/
629-
ret = mapping->a_ops->writepage(page, wbc);
629+
ret = block_write_full_page(page, mpd->get_block, wbc);
630630
mapping_set_error(mapping, ret);
631631
out:
632632
mpd->bio = bio;

0 commit comments

Comments
 (0)