diff options
author | Josef Bacik <josef@toxicpanda.com> | 2024-03-20 23:40:51 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2024-05-07 22:31:09 +0300 |
commit | 6eecfa22403e2c322a91f7654ade7f126adc55c2 (patch) | |
tree | 469a31eff146906ab83bbf833aa79834b321e795 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | aa5ccf29173acfaa8aa2fdd1421aa6aca1a50cf2 (diff) | |
download | linux-6eecfa22403e2c322a91f7654ade7f126adc55c2.tar.xz |
btrfs: push all inline logic into cow_file_range
Currently we have a lot of duplicated checks of
if (start == 0 && fs_info->sectorsize == PAGE_SIZE)
cow_file_range_inline();
Instead of duplicating this check everywhere, consolidate all of the
inline extent logic into a helper which documents all of the checks and
then use that helper inside of cow_file_range_inline(). With this we
can clean up all of the calls to either unconditionally call
cow_file_range_inline(), or at least reduce the checks we're doing
before we call cow_file_range_inline();
Reviewed-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions