summaryrefslogtreecommitdiff
path: root/mm/folio-compat.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2025-02-18 05:51:45 +0000
committerJaegeuk Kim <jaegeuk@kernel.org>2025-03-04 17:02:25 +0000
commite33ce6bd4ea2703444509cafb3646a547573fbc3 (patch)
tree0f74147e623a195c0ae462a5559d2cb540031763 /mm/folio-compat.c
parent8d77f68daeb19b5568e1ceee682a00327a6ca77c (diff)
mm: Remove grab_cache_page_write_begin()
All callers have now been converted to use folios, so remove this compatibility wrapper. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'mm/folio-compat.c')
-rw-r--r--mm/folio-compat.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/mm/folio-compat.c b/mm/folio-compat.c
index 5766d135af1e..45540942d148 100644
--- a/mm/folio-compat.c
+++ b/mm/folio-compat.c
@@ -84,11 +84,3 @@ struct page *pagecache_get_page(struct address_space *mapping, pgoff_t index,
return folio_file_page(folio, index);
}
EXPORT_SYMBOL(pagecache_get_page);
-
-struct page *grab_cache_page_write_begin(struct address_space *mapping,
- pgoff_t index)
-{
- return pagecache_get_page(mapping, index, FGP_WRITEBEGIN,
- mapping_gfp_mask(mapping));
-}
-EXPORT_SYMBOL(grab_cache_page_write_begin);