From: Vincenzo Laurenziello <vincenx@fastwebnet.it>
To: linux-btrfs@vger.kernel.org
Cc: josef@redhat.com
Subject: [PATCH] Cleanup useless lines
Date: Thu, 16 Feb 2012 20:37:00 +0100 [thread overview]
Message-ID: <1329421020.20228.5.camel@icarus> (raw)
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);
}
/*
---
reply other threads:[~2012-02-16 19:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1329421020.20228.5.camel@icarus \
--to=vincenx@fastwebnet.it \
--cc=josef@redhat.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=vinx83@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).