Merge branch 'cleanups-4.6' into for-chris-4.6

This commit is contained in:
David Sterba
2016-02-26 15:38:33 +01:00
16 changed files with 64 additions and 89 deletions

View File

@@ -3490,8 +3490,7 @@ u64 btrfs_csum_bytes_to_leaves(struct btrfs_root *root, u64 csum_bytes);
static inline u64 btrfs_calc_trans_metadata_size(struct btrfs_root *root,
unsigned num_items)
{
return (root->nodesize + root->nodesize * (BTRFS_MAX_LEVEL - 1)) *
2 * num_items;
return root->nodesize * BTRFS_MAX_LEVEL * 2 * num_items;
}
/*