浏览代码

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>
Jan Schmidt 13 年之前
父节点
当前提交
4d5a0565ce
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      fs/btrfs/ctree.c

+ 0 - 3
fs/btrfs/ctree.c

@@ -1650,8 +1650,6 @@ static noinline int balance_level(struct btrfs_trans_handle *trans,
 	    BTRFS_NODEPTRS_PER_BLOCK(root) / 4)
 	    BTRFS_NODEPTRS_PER_BLOCK(root) / 4)
 		return 0;
 		return 0;
 
 
-	btrfs_header_nritems(mid);
-
 	left = read_node_slot(root, parent, pslot - 1);
 	left = read_node_slot(root, parent, pslot - 1);
 	if (left) {
 	if (left) {
 		btrfs_tree_lock(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);
 		wret = push_node_left(trans, root, left, mid, 1);
 		if (wret < 0)
 		if (wret < 0)
 			ret = wret;
 			ret = wret;
-		btrfs_header_nritems(mid);
 	}
 	}
 
 
 	/*
 	/*