]> git.hungrycats.org Git - linux/commit
btrfs: convert btrfs_compr_pool_scan() to use folios
authorTal Zussman <tz2294@columbia.edu>
Mon, 7 Sep 2026 20:19:58 +0000 (16:19 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 14 Sep 2026 11:23:37 +0000 (13:23 +0200)
commit027ffac059fd06eb20900c5a296e96485aa90e2f
tree1ebb71ceeb7d95c06b95c9584d30f9cdfef0c1d8
parent1975b173fd1c4e94589dd6cb142b45dfe25bd289
btrfs: convert btrfs_compr_pool_scan() to use folios

The compression pool holds order-0 folios, but btrfs_compr_pool_scan()
walks it as struct page through page->lru. Walk it as folios, matching
the other compression pool functions. This removes the last use of
page->lru in btrfs and saves a call to compound_head() per freed
folio.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Tal Zussman <tz2294@columbia.edu>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.c