summaryrefslogtreecommitdiff
path: root/backref.c
diff options
context:
space:
mode:
Diffstat (limited to 'backref.c')
-rw-r--r--backref.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/backref.c b/backref.c
index ce12bbdf..0423a2b3 100644
--- a/backref.c
+++ b/backref.c
@@ -802,11 +802,10 @@ static int find_parent_nodes(struct btrfs_trans_handle *trans,
if (ref->count && ref->parent) {
if (extent_item_pos && !ref->inode_list &&
ref->level == 0) {
- u32 bsz;
struct extent_buffer *eb;
- bsz = fs_info->nodesize;
- eb = read_tree_block(fs_info,
- ref->parent, bsz, 0);
+
+ eb = read_tree_block(fs_info, ref->parent,
+ fs_info->nodesize, 0);
if (!extent_buffer_uptodate(eb)) {
free_extent_buffer(eb);
ret = -EIO;