mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-04 00:06:36 +00:00
btrfs: remove unused function heads_to_leaves
There's no callers in-tree anymore since commit 64403612b7
("btrfs:
rework btrfs_check_space_for_delayed_refs")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
fb8521caa8
commit
eec5b6e097
1 changed files with 0 additions and 16 deletions
|
@ -2114,22 +2114,6 @@ static u64 find_middle(struct rb_root *root)
|
|||
}
|
||||
#endif
|
||||
|
||||
static inline u64 heads_to_leaves(struct btrfs_fs_info *fs_info, u64 heads)
|
||||
{
|
||||
u64 num_bytes;
|
||||
|
||||
num_bytes = heads * (sizeof(struct btrfs_extent_item) +
|
||||
sizeof(struct btrfs_extent_inline_ref));
|
||||
if (!btrfs_fs_incompat(fs_info, SKINNY_METADATA))
|
||||
num_bytes += heads * sizeof(struct btrfs_tree_block_info);
|
||||
|
||||
/*
|
||||
* We don't ever fill up leaves all the way so multiply by 2 just to be
|
||||
* closer to what we're really going to want to use.
|
||||
*/
|
||||
return div_u64(num_bytes, BTRFS_LEAF_DATA_SIZE(fs_info));
|
||||
}
|
||||
|
||||
/*
|
||||
* Takes the number of bytes to be csumm'ed and figures out how many leaves it
|
||||
* would require to store the csums for that many bytes.
|
||||
|
|
Loading…
Add table
Reference in a new issue