Re: [PATCH v2 0/7] btrfs: convert some struct page users to folios
From: Tal Zussman
Date: Wed Sep 09 2026 - 13:32:57 EST
On 9/9/26 5:03 PM, David Sterba wrote:
> On Wed, Sep 09, 2026 at 03:40:47PM +0930, Qu Wenruo wrote:
>>
>>
>> 在 2026/9/8 05:49, Tal Zussman 写道:
>> > This series converts three areas of btrfs that still use struct page:
>> >
>> > 1. The extent-io tests. test_find_delalloc() uses the page APIs, and the
>> > extent buffer memory checks assume one page per folio.
>> >
>> > 2. Compression. btrfs_compr_pool_scan() walks the folio pool as struct
>> > page, the last use of page->lru in btrfs, and the heuristic sampler
>> > is the last caller of find_get_page().
>> >
>> > 3. Super block reads. btrfs_read_disk_super() and the zoned super block
>> > log comparison are the last page cache lookups by page in btrfs.
>> >
>> > Tested with KASAN, lockdep, DEBUG_VM and the btrfs selftests enabled.
>> > xfstests' compress group under compress=zstd and the btrfs group both
>> > pass.
>>
>> Now pushed to for-next branch.
>
> Tal, please send the cast removal I asked for in patch 5 separately. Thanks.
>
Done: https://lore.kernel.org/linux-btrfs/20260909-btrfs-heuristic-u64-index-v1-1-8606b3c89807@xxxxxxxxxxxx/T/#u