From: "Eric Van Hensbergen" <ericvh@gmail.com>
To: "Pavel Emelyanov" <xemul@openvz.org>
Cc: "Andrew Morton" <akpm@osdl.org>,
"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>,
devel@openvz.org, "Ron Minnich" <rminnich@sandia.gov>,
"Latchesar Ionkov" <lucho@ionkov.net>
Subject: Re: [PATCH 3/5][9PFS] Cleanup explicit check for mandatory locks
Date: Mon, 17 Sep 2007 09:51:31 -0500 [thread overview]
Message-ID: <a4e6962a0709170751u35944261h3148399c39fdfa8a@mail.gmail.com> (raw)
In-Reply-To: <46EE328E.5050205@openvz.org>
On 9/17/07, Pavel Emelyanov <xemul@openvz.org> wrote:
> The __mandatory_lock(inode) macro makes the same check, but
> makes the code more readable.
>
> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
> Acked-by: Eric Van Hensbergen <ericvh@gmail.com>
>
> ---
>
> fs/9p/vfs_file.c | 2 +-
> 1 files changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/9p/vfs_file.c b/fs/9p/vfs_file.c
> index 2a40c29..7166916 100644
> --- a/fs/9p/vfs_file.c
> +++ b/fs/9p/vfs_file.c
> @@ -105,7 +105,7 @@ static int v9fs_file_lock(struct file *f
> P9_DPRINTK(P9_DEBUG_VFS, "filp: %p lock: %p\n", filp, fl);
>
> /* No mandatory locks */
> - if ((inode->i_mode & (S_ISGID | S_IXGRP)) == S_ISGID)
> + if (__mandatory_lock(inode))
> return -ENOLCK;
>
> if ((IS_SETLK(cmd) || IS_SETLKW(cmd)) && fl->fl_type != F_UNLCK) {
>
>
prev parent reply other threads:[~2007-09-17 14:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-17 7:53 Pavel Emelyanov
2007-09-17 14:51 ` Eric Van Hensbergen [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=a4e6962a0709170751u35944261h3148399c39fdfa8a@mail.gmail.com \
--to=ericvh@gmail.com \
--cc=akpm@osdl.org \
--cc=devel@openvz.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lucho@ionkov.net \
--cc=rminnich@sandia.gov \
--cc=xemul@openvz.org \
/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
Powered by JetHome