aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorJosef Bacik <[email protected]>2019-08-22 15:14:33 -0400
committerDavid Sterba <[email protected]>2019-09-09 14:59:13 +0200
commit2bd36e7b4fd60d4ff5f9ba6a0ad84557ae4803c4 (patch)
tree092a2fb134a8cb3387df0bde272d631aa8fd3e21 /lib/test_overflow.c
parent0785a9aacf9de9cd6a89a628b3b5d6b7e9ce5316 (diff)
btrfs: rename the btrfs_calc_*_metadata_size helpers
btrfs_calc_trunc_metadata_size differs from trans_metadata_size in that it doesn't take into account any splitting at the levels, because truncate will never split nodes. However truncate _and_ changing will never split nodes, so rename btrfs_calc_trunc_metadata_size to btrfs_calc_metadata_size. Also btrfs_calc_trans_metadata_size is purely for inserting items, so rename this to btrfs_calc_insert_metadata_size. Making these clearer will help when I start using them differently in upcoming patches. Reviewed-by: Nikolay Borisov <[email protected]> Signed-off-by: Josef Bacik <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions