summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQu Wenruo <quwenruo@cn.fujitsu.com>2017-05-18 09:39:03 +0800
committerDavid Sterba <dsterba@suse.com>2017-07-03 13:35:10 +0200
commitda79b13898c92a732699a21c9e7f072002a9c329 (patch)
tree2b35c23c258d4c2608ba8a58ebafe0e2fbee88e5
parent7354c698eb096234cb868c032d09abac4bcd3c19 (diff)
btrfs-progs: Refactor nodesize user in btrfstune.c
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
-rw-r--r--btrfstune.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/btrfstune.c b/btrfstune.c
index 257bac44..0a6ad9ca 100644
--- a/btrfstune.c
+++ b/btrfstune.c
@@ -149,7 +149,7 @@ static int change_extents_uuid(struct btrfs_fs_info *fs_info)
goto next;
bytenr = key.objectid;
- eb = read_tree_block(root, bytenr, root->nodesize, 0);
+ eb = read_tree_block(root, bytenr, root->fs_info->nodesize, 0);
if (IS_ERR(eb)) {
error("failed to read tree block: %llu", bytenr);
ret = PTR_ERR(eb);