mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 19:24:01 -04:00
filemap: remove readahead_page()
Patch series "Misc folio patches for 6.16". Remove a few APIs that we've converted everybody from using. I also found a few places that extract a page pointer from i_pages, which will be an invalid thing to do when we separate pages from folios. This patch (of 8): All filesystems have now been converted to call readahead_folio() so we can delete this wrapper. Link: https://lkml.kernel.org/r/20250402210612.2444135-1-willy@infradead.org Link: https://lkml.kernel.org/r/20250402210612.2444135-2-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
committed by
Andrew Morton
parent
5071ea3d7b
commit
c09b997342
@@ -1308,9 +1308,9 @@ static inline bool filemap_range_needs_writeback(struct address_space *mapping,
|
||||
* struct readahead_control - Describes a readahead request.
|
||||
*
|
||||
* A readahead request is for consecutive pages. Filesystems which
|
||||
* implement the ->readahead method should call readahead_page() or
|
||||
* readahead_page_batch() in a loop and attempt to start I/O against
|
||||
* each page in the request.
|
||||
* implement the ->readahead method should call readahead_folio() or
|
||||
* __readahead_batch() in a loop and attempt to start reads into each
|
||||
* folio in the request.
|
||||
*
|
||||
* Most of the fields in this struct are private and should be accessed
|
||||
* by the functions below.
|
||||
@@ -1415,22 +1415,6 @@ static inline struct folio *__readahead_folio(struct readahead_control *ractl)
|
||||
return folio;
|
||||
}
|
||||
|
||||
/**
|
||||
* readahead_page - Get the next page to read.
|
||||
* @ractl: The current readahead request.
|
||||
*
|
||||
* Context: The page is locked and has an elevated refcount. The caller
|
||||
* should decreases the refcount once the page has been submitted for I/O
|
||||
* and unlock the page once all I/O to that page has completed.
|
||||
* Return: A pointer to the next page, or %NULL if we are done.
|
||||
*/
|
||||
static inline struct page *readahead_page(struct readahead_control *ractl)
|
||||
{
|
||||
struct folio *folio = __readahead_folio(ractl);
|
||||
|
||||
return &folio->page;
|
||||
}
|
||||
|
||||
/**
|
||||
* readahead_folio - Get the next folio to read.
|
||||
* @ractl: The current readahead request.
|
||||
|
||||
Reference in New Issue
Block a user