mm: Remove grab_cache_page_write_begin()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 18 Feb 2025 05:51:45 +0000 (05:51 +0000)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 4 Mar 2025 17:02:25 +0000 (17:02 +0000)
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>
include/linux/pagemap.h
mm/folio-compat.c

index a19d8e334194f224e630759c3e534d2399f8baf6..45817e2106ee135208ee39c6a961bf1f37911bc0 100644 (file)
@@ -990,9 +990,6 @@ unsigned filemap_get_folios_contig(struct address_space *mapping,
 unsigned filemap_get_folios_tag(struct address_space *mapping, pgoff_t *start,
                pgoff_t end, xa_mark_t tag, struct folio_batch *fbatch);
 
-struct page *grab_cache_page_write_begin(struct address_space *mapping,
-                       pgoff_t index);
-
 /*
  * Returns locked page at given index in given cache, creating it if needed.
  */
index 5766d135af1e0b516cbf6055246795473b838bc4..45540942d148a94541c477a16a6269210a168745 100644 (file)
@@ -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);