OSDN Git Service

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)
commit0ce1dd2a4ab5513cfa9cce3138251a3c71e446cd
tree0101b9636661caafb0236963fb82c5665ebc2aaf
parent583b723151794e2ff1691f1510b4e43710293875
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