Skip to content

Commit

Permalink
Btrfs: remove call to btrfs_header_nritems with no effect
Browse files Browse the repository at this point in the history
This is a leftover from cleanup patch 559af82. Before the cleanup,
btrfs_header_nritems was called inside an if condition. As it has no side
effects we need to preserve here, it should simply be dropped.

Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
  • Loading branch information
Jan Schmidt committed Jun 4, 2012
1 parent 1e20932 commit 4d5a056
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fs/btrfs/ctree.c
Original file line number Diff line number Diff line change
Expand Up @@ -1650,8 +1650,6 @@ static noinline int balance_level(struct btrfs_trans_handle *trans,
BTRFS_NODEPTRS_PER_BLOCK(root) / 4)
return 0;

btrfs_header_nritems(mid);

left = read_node_slot(root, parent, pslot - 1);
if (left) {
btrfs_tree_lock(left);
Expand Down Expand Up @@ -1681,7 +1679,6 @@ static noinline int balance_level(struct btrfs_trans_handle *trans,
wret = push_node_left(trans, root, left, mid, 1);
if (wret < 0)
ret = wret;
btrfs_header_nritems(mid);
}

/*
Expand Down

0 comments on commit 4d5a056

Please sign in to comment.