]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: prepare btrfs_page_mkwrite() for large data folios
authorQu Wenruo <wqu@suse.com>
Mon, 17 Mar 2025 07:10:48 +0000 (17:40 +1030)
committerDavid Sterba <dsterba@suse.com>
Thu, 15 May 2025 12:30:42 +0000 (14:30 +0200)
commitf45e538b0002bac23a1d2b27002088aa89279b74
treeb358124589b8569a00ac78c36ecf3ec915312157
parenta4a636a43741c2706868fb97dff9a83d398ac9e3
btrfs: prepare btrfs_page_mkwrite() for large data folios

The function btrfs_page_mkwrite() has an explicit ASSERT() checking the
folio order.

To make it support large data folios, we need to:

- Remove the ASSERT(folio_order(folio) == 0)

- Use folio_contains() to check if the folio covers the last page

Otherwise the code is already supporting large folios well.

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