From: Libo Chen <clbchenlibo.chen@huawei.com>
To: <clm@fb.com>, <jbacik@fb.com>, <chris.mason@fusionio.com>,
<jbacik@fusionio.com>
Cc: <linux-btrfs@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>, <mfasheh@suse.de>,
<hch@lst.de>, <viro@zeniv.linux.org.uk>, <miaox@cn.fujitsu.com>,
Li Zefan <lizefan@huawei.com>
Subject: [PATCH] fs: btrfs: new helper: file_inode(file)
Date: Wed, 11 Dec 2013 13:56:52 +0800 [thread overview]
Message-ID: <52A7FEA4.80208@huawei.com> (raw)
Signed-off-by: Libo Chen <clbchenlibo.chen@huawei.com
---
fs/btrfs/ioctl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index a111622..fdfc0d7 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -2690,7 +2690,7 @@ static long btrfs_ioctl_file_extent_same(struct file *file,
struct btrfs_ioctl_same_args tmp;
struct btrfs_ioctl_same_args *same;
struct btrfs_ioctl_same_extent_info *info;
- struct inode *src = file->f_dentry->d_inode;
+ struct inode *src = file_inode(file);
struct file *dst_file = NULL;
struct inode *dst;
u64 off;
@@ -2779,7 +2779,7 @@ static long btrfs_ioctl_file_extent_same(struct file *file,
if (file->f_path.mnt != dst_file->f_path.mnt)
goto next;
- dst = dst_file->f_dentry->d_inode;
+ dst = file_inode(dst_file);
if (src->i_sb != dst->i_sb)
goto next;
--
1.8.2.2
next reply other threads:[~2013-12-11 5:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-11 5:56 Libo Chen [this message]
2013-12-11 6:03 ` [PATCH RESEND] fs: btrfs: new helper: file_inode(file) Libo Chen
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=52A7FEA4.80208@huawei.com \
--to=clbchenlibo.chen@huawei.com \
--cc=chris.mason@fusionio.com \
--cc=clm@fb.com \
--cc=hch@lst.de \
--cc=jbacik@fb.com \
--cc=jbacik@fusionio.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lizefan@huawei.com \
--cc=mfasheh@suse.de \
--cc=miaox@cn.fujitsu.com \
--cc=viro@zeniv.linux.org.uk \
/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.