diff options
| author | Christoph Hellwig <hch@lst.de> | 2023-02-27 18:17:03 +0300 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2023-04-17 19:01:16 +0300 |
| commit | 78a2ef1b7b332caaf6466be0b2608082e7c9e7ea (patch) | |
| tree | 8ee7b801b40afc08d48c1a1f3127b14aabe3ff75 /include/linux/zstd_errors.h | |
| parent | 5380311fc8b7baa45011a9b45193b8ba11fc0efb (diff) | |
| download | linux-78a2ef1b7b332caaf6466be0b2608082e7c9e7ea.tar.xz | |
btrfs: check for contiguity in submit_extent_page
Different loop iterations in btrfs_bio_add_page not only have the same
contiguity parameters, but also any non-initial operation operates on a
fresh bio anyway.
Factor out the contiguity check into a new btrfs_bio_is_contig and only
call it once in submit_extent_page before descending into the
bio_add_page loop.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
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 'include/linux/zstd_errors.h')
0 files changed, 0 insertions, 0 deletions
