]> www.infradead.org Git - users/dwmw2/linux.git/commit
btrfs: convert relocate_one_page() to folios and rename
authorGoldwyn Rodrigues <rgoldwyn@suse.com>
Tue, 23 Jan 2024 19:28:06 +0000 (13:28 -0600)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 May 2024 19:31:01 +0000 (21:31 +0200)
commita16c2c48f438e9edd3330f0754fa129108f2e9b3
tree65a256b73ea57dcd5421f321847e1f9f483dc15c
parent8d6e5f9a0ad7932461645c47fd696e05e446fed2
btrfs: convert relocate_one_page() to folios and rename

Convert page references to folios and call the respective folio
functions.  Since find_or_create_page() takes a mask argument, call
__filemap_get_folio() instead of filemap_grab_folio().

The patch assumes folio size is PAGE_SIZE, add a warning in case it's a
higher order that will be implemented in the future.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/relocation.c