From: Sunil Mushran <sunil.mushran@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH] ocfs2-1.6: Use filep_dentry in compat_ctl.
Date: Thu, 11 Feb 2010 16:05:13 -0800 [thread overview]
Message-ID: <4B749B39.9050309@oracle.com> (raw)
In-Reply-To: <1265791469-15876-1-git-send-email-tao.ma@oracle.com>
Tao Ma wrote:
> 17fb03bb01b4ae34643b16f2029049e5bab350e is backported from
> mainline, but the structure has changed somehow since 2.6.18.
> So get inode like we do in ioctl.
>
> Signed-off-by: Tao Ma <tao.ma@oracle.com>
> ---
> fs/ocfs2/ioctl.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/fs/ocfs2/ioctl.c b/fs/ocfs2/ioctl.c
> index 1d3f828..56dba61 100644
> --- a/fs/ocfs2/ioctl.c
> +++ b/fs/ocfs2/ioctl.c
> @@ -184,7 +184,7 @@ long ocfs2_compat_ioctl(struct file *file, unsigned cmd, unsigned long arg)
> {
> bool preserve;
> struct reflink_arguments args;
> - struct inode *inode = file->f_path.dentry->d_inode;
> + struct inode *inode = filp_dentry(file)->d_inode;
>
> switch (cmd) {
> case OCFS2_IOC32_GETFLAGS:
>
Checked-in.
prev parent reply other threads:[~2010-02-12 0:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-10 8:44 [Ocfs2-devel] [PATCH] ocfs2-1.6: Use filep_dentry in compat_ctl Tao Ma
2010-02-12 0:05 ` Sunil Mushran [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=4B749B39.9050309@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.