summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Schmidt <list.btrfs@jan-o-sch.net>2012-04-30 11:17:25 +0200
committerJan Schmidt <list.btrfs@jan-o-sch.net>2012-06-04 14:35:29 +0200
commit4d5a0565cebf12c2ef854e4ac1961f13a710a950 (patch)
treefa4c4632b328fa65433345d69dfcb2cce9117f62
parent1e20932a23578bb1ec59107843574e259b96193f (diff)
downloadlinux-4d5a0565cebf12c2ef854e4ac1961f13a710a950.tar.gz
linux-4d5a0565cebf12c2ef854e4ac1961f13a710a950.tar.bz2
linux-4d5a0565cebf12c2ef854e4ac1961f13a710a950.zip
Btrfs: remove call to btrfs_header_nritems with no effect
This is a leftover from cleanup patch 559af821. 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>
-rw-r--r--fs/btrfs/ctree.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
index d7a96cfdc50a..836e4e03edca 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
@@ -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);
@@ -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);
}
/*