diff options
author | 2022-07-09 08:18:41 +0900 | |
---|---|---|
committer | 2022-07-25 17:45:41 +0200 | |
commit | 7d7672bc5d1038c745716c397d892d21e29de71c (patch) | |
tree | ba8befc42fc2c3980f54962f8a2944a32c3dbd87 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | btrfs: replace BTRFS_MAX_EXTENT_SIZE with fs_info->max_extent_size (diff) | |
download | linux-dev-7d7672bc5d1038c745716c397d892d21e29de71c.tar.xz linux-dev-7d7672bc5d1038c745716c397d892d21e29de71c.zip |
btrfs: convert count_max_extents() to use fs_info->max_extent_size
If count_max_extents() uses BTRFS_MAX_EXTENT_SIZE to calculate the number
of extents needed, btrfs release the metadata reservation too much on its
way to write out the data.
Now that BTRFS_MAX_EXTENT_SIZE is replaced with fs_info->max_extent_size,
convert count_max_extents() to use it instead, and fix the calculation of
the metadata reservation.
CC: stable@vger.kernel.org # 5.12+
Fixes: d8e3fb106f39 ("btrfs: zoned: use ZONE_APPEND write for zoned mode")
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.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