summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-11-09 17:44:25 +0100
committerDavid Sterba <dsterba@suse.com>2016-11-30 13:45:17 +0100
commitd24ee97b96db46123f766041d2ec0ca81491bd31 (patch)
tree269f11139b8649558f76a3e598fc8cb861cbf3e9 /fs/btrfs/volumes.c
parentf157bf765b3773efb5e981dea286cd311fca3b59 (diff)
downloadop-kernel-dev-d24ee97b96db46123f766041d2ec0ca81491bd31.zip
op-kernel-dev-d24ee97b96db46123f766041d2ec0ca81491bd31.tar.gz
btrfs: use new helpers to set uuids in eb
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r--fs/btrfs/volumes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 23df14c..7eebf55 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -1595,8 +1595,8 @@ 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(leaf, root->fs_info->chunk_tree_uuid,
- btrfs_dev_extent_chunk_tree_uuid(extent), BTRFS_UUID_SIZE);
+ write_extent_buffer_chunk_tree_uuid(leaf,
+ root->fs_info->chunk_tree_uuid);
btrfs_set_dev_extent_length(leaf, extent, num_bytes);
btrfs_mark_buffer_dirty(leaf);
OpenPOWER on IntegriCloud