aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorNaohiro Aota <[email protected]>2022-07-09 08:18:41 +0900
committerDavid Sterba <[email protected]>2022-07-25 17:45:41 +0200
commit7d7672bc5d1038c745716c397d892d21e29de71c (patch)
treeba8befc42fc2c3980f54962f8a2944a32c3dbd87 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parentf7b12a62f008a3041f42f2426983e59a6a0a3c59 (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: [email protected] # 5.12+ Fixes: d8e3fb106f39 ("btrfs: zoned: use ZONE_APPEND write for zoned mode") Signed-off-by: Naohiro Aota <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions