From: Andrew Morton <akpm@linux-foundation.org>
To: Daeseok Youn <daeseok.youn@gmail.com>
Cc: mfasheh@suse.com, jlbec@evilplan.org, ocfs2-devel@oss.oracle.com,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] ocfs2: remove useless if statement
Date: Tue, 17 Feb 2015 15:30:57 -0800 [thread overview]
Message-ID: <20150217153057.c911fc895051343d69a78423@linux-foundation.org> (raw)
In-Reply-To: <20150217071350.GA9568@devel.8.8.4.4>
On Tue, 17 Feb 2015 16:13:50 +0900 Daeseok Youn <daeseok.youn@gmail.com> wrote:
> The Local variable "i" in for loop is always less then
> O2CB_MAP_STABILIZE_COUNT.
>
> Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
> ---
> fs/ocfs2/stack_o2cb.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/fs/ocfs2/stack_o2cb.c b/fs/ocfs2/stack_o2cb.c
> index 1724d43..813d726 100644
> --- a/fs/ocfs2/stack_o2cb.c
> +++ b/fs/ocfs2/stack_o2cb.c
> @@ -295,8 +295,8 @@ static int o2cb_cluster_check(void)
> set_bit(node_num, netmap);
> if (!memcmp(hbmap, netmap, sizeof(hbmap)))
> return 0;
> - if (i < O2CB_MAP_STABILIZE_COUNT)
> - msleep(1000);
> +
> + msleep(1000);
> }
I assume the code was intended to do
if (i < O2CB_MAP_STABILIZE_COUNT - 1)
msleep(1000);
to avoid a pointless 1-second delay when the operation times out.
prev parent reply other threads:[~2015-02-17 23:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-17 7:13 Daeseok Youn
2015-02-17 23:30 ` Andrew Morton [this message]
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=20150217153057.c911fc895051343d69a78423@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=daeseok.youn@gmail.com \
--cc=jlbec@evilplan.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mfasheh@suse.com \
--cc=ocfs2-devel@oss.oracle.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
all inboxes | Powered by JetHome®