提交 01e0da48 编写于 作者: Q Qu Wenruo 提交者: David Sterba

btrfs: extent-tree: cleanup one-shot usage of @blocksize in do_walk_down

@blocksize variable in do_walk_down() is only used once, really no need
to declare it.
Reviewed-by: NNikolay Borisov <nborisov@suse.com>
Reviewed-by: NJohannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: NQu Wenruo <wqu@suse.com>
Signed-off-by: NDavid Sterba <dsterba@suse.com>
上级 7c3c7cb9
...@@ -8874,7 +8874,6 @@ static noinline int do_walk_down(struct btrfs_trans_handle *trans, ...@@ -8874,7 +8874,6 @@ static noinline int do_walk_down(struct btrfs_trans_handle *trans,
u64 bytenr; u64 bytenr;
u64 generation; u64 generation;
u64 parent; u64 parent;
u32 blocksize;
struct btrfs_key key; struct btrfs_key key;
struct btrfs_key first_key; struct btrfs_key first_key;
struct extent_buffer *next; struct extent_buffer *next;
...@@ -8899,7 +8898,6 @@ static noinline int do_walk_down(struct btrfs_trans_handle *trans, ...@@ -8899,7 +8898,6 @@ static noinline int do_walk_down(struct btrfs_trans_handle *trans,
bytenr = btrfs_node_blockptr(path->nodes[level], path->slots[level]); bytenr = btrfs_node_blockptr(path->nodes[level], path->slots[level]);
btrfs_node_key_to_cpu(path->nodes[level], &first_key, btrfs_node_key_to_cpu(path->nodes[level], &first_key,
path->slots[level]); path->slots[level]);
blocksize = fs_info->nodesize;
next = find_extent_buffer(fs_info, bytenr); next = find_extent_buffer(fs_info, bytenr);
if (!next) { if (!next) {
...@@ -9023,7 +9021,7 @@ static noinline int do_walk_down(struct btrfs_trans_handle *trans, ...@@ -9023,7 +9021,7 @@ static noinline int do_walk_down(struct btrfs_trans_handle *trans,
ret); ret);
} }
} }
ret = btrfs_free_extent(trans, root, bytenr, blocksize, ret = btrfs_free_extent(trans, root, bytenr, fs_info->nodesize,
parent, root->root_key.objectid, parent, root->root_key.objectid,
level - 1, 0); level - 1, 0);
if (ret) if (ret)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册