summaryrefslogtreecommitdiff
path: root/mm/vmscan.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2022-05-05 00:43:09 -0400
committerMatthew Wilcox (Oracle) <willy@infradead.org>2022-05-09 23:12:54 -0400
commit8560cb1a7d75048af275dd23fb0cf05382b3c2b9 (patch)
treea0e2946b5fd8ee34c81f9340306a33f4c7bfbcf3 /mm/vmscan.c
parent6612ed24a242734560f9643ccb08f2f40b6e144b (diff)
fs: Remove aops->freepage
All implementations now use free_folio so we can delete the callers and the method. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r--mm/vmscan.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c
index d8a031128ad0..edc89f26b738 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -1283,10 +1283,8 @@ static int __remove_mapping(struct address_space *mapping, struct folio *folio,
put_swap_page(&folio->page, swap);
} else {
void (*free_folio)(struct folio *);
- void (*freepage)(struct page *);
free_folio = mapping->a_ops->free_folio;
- freepage = mapping->a_ops->freepage;
/*
* Remember a shadow entry for reclaimed file cache in
* order to detect refaults, thus thrashing, later on.
@@ -1314,8 +1312,6 @@ static int __remove_mapping(struct address_space *mapping, struct folio *folio,
if (free_folio)
free_folio(folio);
- if (freepage)
- freepage(&folio->page);
}
return 1;