From: Qu Wenruo Date: Mon, 17 Mar 2025 07:10:50 +0000 (+1030) Subject: btrfs: prepare end_bbio_data_write() for large data folios X-Git-Tag: v6.16-rc1~214^2~156 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c08d45de63f64e7de53b4b64b23b15b4e452f06f;p=thirdparty%2Fkernel%2Flinux.git btrfs: prepare end_bbio_data_write() for large data folios The function is doing an ASSERT() checking the folio order, but all later functions are handling large folios properly, thus we can safely remove that ASSERT(). Signed-off-by: Qu Wenruo Reviewed-by: David Sterba Signed-off-by: David Sterba --- diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index 92f4d83594b6f..791a9972b2e63 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -462,9 +462,6 @@ static void end_bbio_data_write(struct btrfs_bio *bbio) u64 start = folio_pos(folio) + fi.offset; u32 len = fi.length; - /* Only order 0 (single page) folios are allowed for data. */ - ASSERT(folio_order(folio) == 0); - /* Our read/write should always be sector aligned. */ if (!IS_ALIGNED(fi.offset, sectorsize)) btrfs_err(fs_info,