]> git.hungrycats.org Git - linux/commit
btrfs: convert heuristic_collect_sample() to use folios
authorTal Zussman <tz2294@columbia.edu>
Mon, 7 Sep 2026 20:19:59 +0000 (16:19 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 14 Sep 2026 11:23:38 +0000 (13:23 +0200)
commit05d82382315192a4bb840166d6d2e6f4198cbcfa
tree7ea448782c1587fba20ff4c1b6c242fe51bad709
parent027ffac059fd06eb20900c5a296e96485aa90e2f
btrfs: convert heuristic_collect_sample() to use folios

Convert the sampling loop to folios. This removes the last caller of
find_get_page() in btrfs and saves a call to compound_head() per sampled
page. Document that the lookup is not supposed to fail with an ASSERT().

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