diff options
| author | Christoph Hellwig <hch@lst.de> | 2023-02-27 08:17:03 -0700 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2023-04-17 18:01:16 +0200 |
| commit | 78a2ef1b7b332caaf6466be0b2608082e7c9e7ea (patch) | |
| tree | 8ee7b801b40afc08d48c1a1f3127b14aabe3ff75 /tools/perf/scripts/python/syscall-counts.py | |
| parent | 5380311fc8b7baa45011a9b45193b8ba11fc0efb (diff) | |
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 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
