diff options
author | Naohiro Aota <naohiro.aota@wdc.com> | 2022-07-09 02:18:41 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-07-25 18:45:41 +0300 |
commit | 7d7672bc5d1038c745716c397d892d21e29de71c (patch) | |
tree | ba8befc42fc2c3980f54962f8a2944a32c3dbd87 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | f7b12a62f008a3041f42f2426983e59a6a0a3c59 (diff) | |
download | linux-7d7672bc5d1038c745716c397d892d21e29de71c.tar.xz |
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/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions