Same as kernel declaration. Signed-off-by: Qu Wenruo <w...@suse.com> --- utils.c | 2 +- volumes.c | 6 +++--- volumes.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/utils.c b/utils.c index e9cb3a82fda6..eff5fb64cfd5 100644 --- a/utils.c +++ b/utils.c @@ -216,7 +216,7 @@ int btrfs_add_to_fsid(struct btrfs_trans_handle *trans, device->total_bytes = device_total_bytes; device->bytes_used = 0; device->total_ios = 0; - device->dev_root = fs_info->dev_root; + device->fs_info = fs_info; device->name = strdup(path); if (!device->name) { ret = -ENOMEM; diff --git a/volumes.c b/volumes.c index c2efb3c674dc..cff54c612872 100644 --- a/volumes.c +++ b/volumes.c @@ -380,7 +380,7 @@ static int find_free_dev_extent_start(struct btrfs_device *device, u64 *start, u64 *len) { struct btrfs_key key; - struct btrfs_root *root = device->dev_root; + struct btrfs_root *root = device->fs_info->dev_root; struct btrfs_dev_extent *dev_extent; struct btrfs_path *path; u64 hole_size; @@ -724,7 +724,7 @@ int btrfs_update_device(struct btrfs_trans_handle *trans, struct extent_buffer *leaf; struct btrfs_key key; - root = device->dev_root->fs_info->chunk_root; + root = device->fs_info->chunk_root; path = btrfs_alloc_path(); if (!path) @@ -1895,7 +1895,7 @@ static int read_one_dev(struct btrfs_fs_info *fs_info, } fill_device_from_item(leaf, dev_item, device); - device->dev_root = fs_info->dev_root; + device->fs_info = fs_info; return ret; } diff --git a/volumes.h b/volumes.h index 950de5a9f910..84deafc98b0d 100644 --- a/volumes.h +++ b/volumes.h @@ -26,7 +26,7 @@ struct btrfs_device { struct list_head dev_list; - struct btrfs_root *dev_root; + struct btrfs_fs_info *fs_info; struct btrfs_fs_devices *fs_devices; u64 total_ios; -- 2.16.1 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html