fs: Change try_to_free_buffers() to take a folio

All but two of the callers already have a folio; pass a folio into
try_to_free_buffers().  This removes the last user of cancel_dirty_page()
so remove that wrapper function too.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
This commit is contained in:
Matthew Wilcox (Oracle)
2022-05-01 01:08:08 -04:00
parent 731222557a
commit 68189fef88
16 changed files with 37 additions and 41 deletions

View File

@@ -82,7 +82,7 @@ static void release_buffer_page(struct buffer_head *bh)
folio_get(folio);
__brelse(bh);
try_to_free_buffers(&folio->page);
try_to_free_buffers(folio);
folio_unlock(folio);
folio_put(folio);
return;