]> 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)
commitb6d4b106c2c653087ce04be8026215b44dd6516f
tree0101b9636661caafb0236963fb82c5665ebc2aaf
parent93dc793719a250b8f7ad9ebb40ee5fd39e7485ac
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