btrfs: page to folio conversion in btrfs_truncate_block()
authorGoldwyn Rodrigues <rgoldwyn@suse.de>
Thu, 11 Jan 2024 01:56:13 +0000 (19:56 -0600)
committerDavid Sterba <dsterba@suse.com>
Mon, 4 Mar 2024 15:24:45 +0000 (16:24 +0100)
commitdf055afe9bec5a62e0ad8135829b5359332fd1a9
tree91025decc0c3dc8c2c287d08bd0f806069e209b4
parentfae9cd252f889f006326e126906e879451040a5f
btrfs: page to folio conversion in btrfs_truncate_block()

Convert use of struct page to struct folio inside btrfs_truncate_block().
The only page based function is set_page_extent_mapped(). All other
functions have folio equivalents.

Had to use __filemap_get_folio() because filemap_grab_folio() does not
allow passing allocation mask as a parameter.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c