* [PATCH] Cleanup useless lines
@ 2012-02-16 19:37 Vincenzo Laurenziello
0 siblings, 0 replies; only message in thread
From: Vincenzo Laurenziello @ 2012-02-16 19:37 UTC (permalink / raw)
To: linux-btrfs; +Cc: josef
This patch removes two useless calls of btrfs_header_nritems() in balance_level().
Signed-off-by: Vincenzo Laurenziello <vinx83@gmail.com>
Signed-off-by: Josef Bacik <josef@redhat.com>
---
--- 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);
}
/*
---
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-02-16 19:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-16 19:37 [PATCH] Cleanup useless lines Vincenzo Laurenziello
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.