gfs2: Remove gfs2_aspace_writepage()

There are no remaining callers of gfs2_aspace_writepage() other than
vmscan, which is known to do more harm than good.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
This commit is contained in:
Matthew Wilcox (Oracle) 2024-07-19 18:51:04 +01:00 committed by Andreas Gruenbacher
parent e5ac171992
commit 6888c1e85f

View file

@ -86,13 +86,6 @@ static void gfs2_aspace_write_folio(struct folio *folio,
folio_end_writeback(folio); folio_end_writeback(folio);
} }
static int gfs2_aspace_writepage(struct page *page, struct writeback_control *wbc)
{
gfs2_aspace_write_folio(page_folio(page), wbc);
return 0;
}
static int gfs2_aspace_writepages(struct address_space *mapping, static int gfs2_aspace_writepages(struct address_space *mapping,
struct writeback_control *wbc) struct writeback_control *wbc)
{ {
@ -115,7 +108,6 @@ const struct address_space_operations gfs2_meta_aops = {
const struct address_space_operations gfs2_rgrp_aops = { const struct address_space_operations gfs2_rgrp_aops = {
.dirty_folio = block_dirty_folio, .dirty_folio = block_dirty_folio,
.invalidate_folio = block_invalidate_folio, .invalidate_folio = block_invalidate_folio,
.writepage = gfs2_aspace_writepage,
.writepages = gfs2_aspace_writepages, .writepages = gfs2_aspace_writepages,
.release_folio = gfs2_release_folio, .release_folio = gfs2_release_folio,
}; };