diff options
author | Nikolay Borisov <nborisov@suse.com> | 2017-07-28 10:50:14 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-08-21 17:47:42 +0200 |
commit | 0ce1dd2a4ab5513cfa9cce3138251a3c71e446cd (patch) | |
tree | 0101b9636661caafb0236963fb82c5665ebc2aaf | |
parent | 583b723151794e2ff1691f1510b4e43710293875 (diff) | |
download | linux-0ce1dd2a4ab5513cfa9cce3138251a3c71e446cd.tar.bz2 |
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>
-rw-r--r-- | fs/btrfs/volumes.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 18231194835e..3561397a0c29 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -1603,8 +1603,6 @@ static int btrfs_alloc_dev_extent(struct btrfs_trans_handle *trans, btrfs_set_dev_extent_chunk_objectid(leaf, extent, chunk_objectid); btrfs_set_dev_extent_chunk_offset(leaf, extent, chunk_offset); - write_extent_buffer_chunk_tree_uuid(leaf, fs_info->chunk_tree_uuid); - btrfs_set_dev_extent_length(leaf, extent, num_bytes); btrfs_mark_buffer_dirty(leaf); out: |