Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit eb1fa9ab authored by Qu Wenruo's avatar Qu Wenruo Committed by David Sterba
Browse files

btrfs: make insert_inline_extent() accept one page directly


Since our inline extent cannot accept anything larger than a sector,
there is really no need to pass all the compressed pages to
insert_inline_extent().

And just in case, expand the ASSERT()s to make sure we only try inline
with compressed size no larger than sectorsize.

Signed-off-by: default avatarQu Wenruo <wqu@suse.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 98fe01af
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment