original_kernel/fs/btrfs/tests
Qu Wenruo 082d5bb9b3 btrfs: migrate extent_buffer::pages[] to folio
For now extent_buffer::pages[] are still only accepting single page
pointer, thus we can migrate to folios pretty easily.

As for single page, page and folio are 1:1 mapped, including their page
flags.

This patch would just do the conversion from struct page to struct
folio, providing the first step to higher order folio in the future.

This conversion is pretty simple:

- extent_buffer::pages[] -> extent_buffer::folios[]

- page_address(eb->pages[i]) -> folio_address(eb->pages[i])

- eb->pages[i] -> folio_page(eb->folios[i], 0)

There would be more specific cleanups preparing for the incoming higher
order folio support.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2023-12-15 23:01:04 +01:00
..
btrfs-tests.c
btrfs-tests.h
extent-buffer-tests.c
extent-io-tests.c btrfs: migrate extent_buffer::pages[] to folio 2023-12-15 23:01:04 +01:00
extent-map-tests.c btrfs: use the flags of an extent map to identify the compression type 2023-12-15 22:59:02 +01:00
free-space-tests.c
free-space-tree-tests.c
inode-tests.c btrfs: use the flags of an extent map to identify the compression type 2023-12-15 22:59:02 +01:00
qgroup-tests.c