btrfs: re-arrange statements in setup_items_for_insert
authorNikolay Borisov <nborisov@suse.com>
Tue, 1 Sep 2020 14:39:57 +0000 (17:39 +0300)
committerDavid Sterba <dsterba@suse.com>
Wed, 7 Oct 2020 10:13:18 +0000 (12:13 +0200)
commitfc0716c2f6afed06a9306db3fb62cc1fcf389757
tree01014eb6bbf44ebf1395d06c4adba2cbb22b4021
parent7573df5547c00f067e4c0b2fd7cc99f3d3a2bda7
btrfs: re-arrange statements in setup_items_for_insert

Rearrange statements calculating the offset of the newly added items so
that the calculation has to be done only once. No functional change.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c