Skip to contentSkip to conversation

Cleanup useless lines

PATCH New Vincenzo Laurenziello 1 participant 1 message Feb 16, 2012 Btrfs file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Cleanup useless lines

This patch removes two useless calls of btrfs_header_nritems() in balance_level().

---

fs/btrfs/ctree.c +0 -3
@@ -966,8 +966,6 @@ static noinline int balance_level(struct
 	    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);
@@ -997,7 +995,6 @@ static noinline int balance_level(struct
 		wret = push_node_left(trans, root, left, mid, 1);
 		if (wret < 0)
 			ret = wret;
-		btrfs_header_nritems(mid);
 	}
 
 	/*

---