diff options
author | Naohiro Aota <naohiro.aota@wdc.com> | 2022-07-09 08:18:41 +0900 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-07-25 17:45:41 +0200 |
commit | 7d7672bc5d1038c745716c397d892d21e29de71c (patch) | |
tree | ba8befc42fc2c3980f54962f8a2944a32c3dbd87 /fs/hfsplus | |
parent | f7b12a62f008a3041f42f2426983e59a6a0a3c59 (diff) |
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 'fs/hfsplus')
0 files changed, 0 insertions, 0 deletions