mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
btrfs: convert try_release_extent_buffer() to take a folio
The old page API is being gradually replaced and converted to use folio to improve code readability and avoid repeated conversion between page and folio. Signed-off-by: Li Zetao <lizetao1@huawei.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
@@ -525,7 +525,7 @@ static bool btree_release_folio(struct folio *folio, gfp_t gfp_flags)
|
||||
if (folio_test_writeback(folio) || folio_test_dirty(folio))
|
||||
return false;
|
||||
|
||||
return try_release_extent_buffer(&folio->page);
|
||||
return try_release_extent_buffer(folio);
|
||||
}
|
||||
|
||||
static void btree_invalidate_folio(struct folio *folio, size_t offset,
|
||||
|
||||
Reference in New Issue
Block a user