From: Sunil Mushran <sunil.mushran@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH] ocfs2: remove a useless statement
Date: Thu, 25 Mar 2010 15:33:00 -0700 [thread overview]
Message-ID: <4BABE49C.8040800@oracle.com> (raw)
In-Reply-To: <201003251552.o2PFqg0O005532@rcsinet15.oracle.com>
nak
I would rather leave it there. We have that if block just for it.
There must have been a reason for it being there.
Wengang Wang wrote:
> When we are downconvert a lock to NL from PR, we don't need access lvb. So we
> clear LKM_VALBLK from _flags_ in __dlmconvert_master(). While we don't check
> LKM_VALBLK on _flags_ any more and _flags_ is never passed to any other
> function. Thus the clearing statement is useless though harmless. For making
> code clean, I made this patch to remove the useless statement.
>
> Signed-off-by: Wengang Wang <wen.gang.wang@oracle.com>
> ---
> fs/ocfs2/dlm/dlmconvert.c | 1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/fs/ocfs2/dlm/dlmconvert.c b/fs/ocfs2/dlm/dlmconvert.c
> index f283bce..44b40a8 100644
> --- a/fs/ocfs2/dlm/dlmconvert.c
> +++ b/fs/ocfs2/dlm/dlmconvert.c
> @@ -173,7 +173,6 @@ static enum dlm_status __dlmconvert_master(struct dlm_ctxt *dlm,
> "into lvb: converting %s->%s\n",
> dlm_lock_mode_name(lock->ml.type),
> dlm_lock_mode_name(type));
> - flags &= ~(LKM_VALBLK);
> }
> break;
> }
>
next prev parent reply other threads:[~2010-03-25 22:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-25 15:51 [Ocfs2-devel] [PATCH] ocfs2: remove a useless statement Wengang Wang
2010-03-25 22:33 ` Sunil Mushran [this message]
2010-03-26 2:33 ` Wengang Wang
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=4BABE49C.8040800@oracle.com \
--to=sunil.mushran@oracle.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 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.