[PATCH] Cleanup useless lines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Vincenzo Laurenziello <vinx83@xxxxxxxxx>
Signed-off-by: Josef Bacik <josef@xxxxxxxxxx>
---
--- a/fs/btrfs/ctree.c	2012-02-13 20:17:29.000000000 +0100
+++ b/fs/btrfs/ctree.c	2012-02-16 19:44:59.830817118 +0100
@@ -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);
 	}
 
 	/*
---


--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux