diff options
author | David Sterba <dsterba@suse.com> | 2017-08-25 16:20:16 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-09-08 16:15:05 +0200 |
commit | 1fa9653dc809ca05c21a2127c9faf15f04bd8ef8 (patch) | |
tree | 7ce07efb7cd0bde856650aacf9bf9156c75c6d26 /backref.c | |
parent | 5d8b645f6f2a5aa6d2b01b2023faeb92000c4d67 (diff) |
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 <dsterba@suse.com>
Diffstat (limited to 'backref.c')
-rw-r--r-- | backref.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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; |