mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 17:43:52 +02:00
btrfs: zlib: prepare copy_data_into_buffer() for large data folios
The function itself is already taking large folios into consideration, just remove the ASSERT(!folio_test_large()) line. Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
3a8f948633
commit
05efe3eb3b
|
|
@ -120,8 +120,6 @@ static int copy_data_into_buffer(struct address_space *mapping,
|
|||
ret = btrfs_compress_filemap_get_folio(mapping, cur, &folio);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
/* No large folio support yet. */
|
||||
ASSERT(!folio_test_large(folio));
|
||||
|
||||
offset = offset_in_folio(folio, cur);
|
||||
copy_length = min(folio_size(folio) - offset,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user