aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosef Bacik <josef@redhat.com>2011-05-11 12:25:37 -0400
committerJosef Bacik <josef@redhat.com>2011-05-23 13:03:11 -0400
commit7e2355ba1a11649f0b212a29fdb9f47476f1248e (patch)
tree94960a4d30595f9806dc66dcc36ae10756936f7c
parentcb25c2ea6a79702ab7895b873c6c43e0d3bc3c72 (diff)
Btrfs: don't look at the extent buffer level 3 times in a row
We have a bit of debugging in btrfs_search_slot to make sure the level of the cow block is the same as the original block we were cow'ing. I don't think I've ever seen this tripped, so kill it. This saves us 2 kmap's per level in our search. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com>
-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 009bcf7f1e4b..f7a0a64b868f 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
@@ -1672,9 +1672,6 @@ again:
1672 } 1672 }
1673cow_done: 1673cow_done:
1674 BUG_ON(!cow && ins_len); 1674 BUG_ON(!cow && ins_len);
1675 if (level != btrfs_header_level(b))
1676 WARN_ON(1);
1677 level = btrfs_header_level(b);
1678 1675
1679 p->nodes[level] = b; 1676 p->nodes[level] = b;
1680 if (!p->skip_locking) 1677 if (!p->skip_locking)