btrfs: move zero filling of compressed read bios into common code
authorChristoph Hellwig <hch@lst.de>
Tue, 7 Mar 2023 16:39:38 +0000 (17:39 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 17 Apr 2023 16:01:17 +0000 (18:01 +0200)
commit7edb9a3e72009917602f80f1c01f2337a103e7e0
treed80df374910918e5df429b9b24bc8021f4afdc2a
parent34f888ce3a355ff83c03ab57cb510920c07f78bb
btrfs: move zero filling of compressed read bios into common code

All algorithms have to fill the remainder of the orig_bio with zeroes,
so do it in common code.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.c
fs/btrfs/lzo.c
fs/btrfs/zlib.c
fs/btrfs/zstd.c