mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user