]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Remove redundant setting of uuid in btrfs_block_header
authorNikolay Borisov <nborisov@suse.com>
Fri, 28 Jul 2017 07:50:14 +0000 (10:50 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Aug 2017 15:47:42 +0000 (17:47 +0200)
commit4cd9c409f95599921a589d1345c63bf4dd248c68
tree0101b9636661caafb0236963fb82c5665ebc2aaf
parentf61b4c2dc1b95812010e52d86f8942c6d1889bb4
btrfs: Remove redundant setting of uuid in btrfs_block_header

btrfs_alloc_dev_extent currently unconditionally sets the uuid in the
leaf block header the function is working with. This is unnecessary
since this operation is peformed by the core btree handling code
(splitting a node, allocating a new btree block etc). So let's remove
it.

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/volumes.c