From 1fa9653dc809ca05c21a2127c9faf15f04bd8ef8 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Fri, 25 Aug 2017 16:20:16 +0200 Subject: btrfs-progs: drop local blocksize variables if they're nodesize Prep work so we can drop the blocksize argument from several functions. Signed-off-by: David Sterba --- backref.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'backref.c') 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; -- cgit v1.2.3