mirror of
https://github.com/torvalds/linux.git
synced 2025-04-09 14:45:27 +00:00
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>
This commit is contained in:
parent
8d77f68dae
commit
e33ce6bd4e
@ -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.
|
||||
*/
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user