@@ -213,14 +213,14 @@ void __fscache_clear_page_bits(struct address_space *mapping,
{
pgoff_t first = start / PAGE_SIZE;
pgoff_t last = (start + len - 1) / PAGE_SIZE;
- struct page *page;
+ struct folio *folio;
if (len) {
XA_STATE(xas, &mapping->i_pages, first);
rcu_read_lock();
- xas_for_each(&xas, page, last) {
- end_page_fscache(page);
+ xas_for_each(&xas, folio, last) {
+ folio_end_fscache(folio);
}
rcu_read_unlock();
}
@@ -89,11 +89,6 @@ static inline int folio_wait_fscache_killable(struct folio *folio)
return folio_wait_private_2_killable(folio);
}
-static inline void end_page_fscache(struct page *page)
-{
- folio_end_private_2(page_folio(page));
-}
-
enum netfs_io_source {
NETFS_FILL_WITH_ZEROES,
NETFS_DOWNLOAD_FROM_SERVER,
Removes the last user of end_page_fscache() so remove that wrapper too. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> --- fs/fscache/io.c | 6 +++--- include/linux/netfs.h | 5 ----- 2 files changed, 3 insertions(+), 8 deletions(-)