diff options
author | Christoph Hellwig <hch@lst.de> | 2023-03-14 17:51:10 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2023-04-17 18:01:18 +0200 |
commit | 43fa4219bcf012385150de299364b5044de6500d (patch) | |
tree | 19a4566c6a3e461488bbb22dc9b4ecd8a943c84a /fs/btrfs/lru_cache.h | |
parent | 4513cb0c40d79599f72a5d1a6ab2fb279b63500d (diff) |
btrfs: simplify adding pages in btrfs_add_compressed_bio_pages
btrfs_add_compressed_bio_pages is needlessly complicated. Instead
of iterating over the logic disk offset just to add pages to the bio
use a simple offset starting at 0, which also removes most of the
claiming. Additionally __bio_add_pages already takes care of the
assert that the bio is always properly sized, and btrfs_submit_bio
called right after asserts that the bio size is non-zero.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/lru_cache.h')
0 files changed, 0 insertions, 0 deletions