]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: prepare btrfs_page_mkwrite() for large folios
authorQu Wenruo <wqu@suse.com>
Thu, 20 Feb 2025 09:22:26 +0000 (19:52 +1030)
committerDavid Sterba <dsterba@suse.com>
Tue, 18 Mar 2025 19:35:53 +0000 (20:35 +0100)
commit49990d8fa27d75f8ecf4ad013b13de3c4b1ff433
tree2404923550e0fe048d52fac47c095734c71a9c29
parentebaa602d52cf6a726955af172c97b2abd950ded1
btrfs: prepare btrfs_page_mkwrite() for large folios

This changes the assumption that the folio is always page sized.
(Although the ASSERT() for folio order is still kept as-is).

Just replace the PAGE_SIZE with folio_size().

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/file.c