diff options
author | Christoph Hellwig <hch@lst.de> | 2023-03-07 19:39:38 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2023-04-17 19:01:17 +0300 |
commit | 7edb9a3e72009917602f80f1c01f2337a103e7e0 (patch) | |
tree | d80df374910918e5df429b9b24bc8021f4afdc2a /fs/btrfs/zlib.c | |
parent | 34f888ce3a355ff83c03ab57cb510920c07f78bb (diff) | |
download | linux-7edb9a3e72009917602f80f1c01f2337a103e7e0.tar.xz |
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>
Diffstat (limited to 'fs/btrfs/zlib.c')
-rw-r--r-- | fs/btrfs/zlib.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/zlib.c b/fs/btrfs/zlib.c index da7bb9187b68..8acb05e176c5 100644 --- a/fs/btrfs/zlib.c +++ b/fs/btrfs/zlib.c @@ -350,8 +350,6 @@ done: zlib_inflateEnd(&workspace->strm); if (data_in) kunmap_local(data_in); - if (!ret) - zero_fill_bio(cb->orig_bio); return ret; } |