All of lore.kernel.org
 help / color / mirror / Atom feed
From: Libo Chen <clbchenlibo.chen@huawei.com>
To: sage@inktank.com, majianpeng <majianpeng@gmail.com>,
	yunchuanwen@ubuntukylin.com, liwang@ubuntukylin.com,
	zheng.z.yan@intel.com
Cc: ceph-devel@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
	Li Zefan <lizefan@huawei.com>,
	milosz@adfin.com
Subject: [PATCH] fs: ceph: new helper: file_inode(file)
Date: Wed, 11 Dec 2013 13:49:11 +0800	[thread overview]
Message-ID: <52A7FCD7.2080809@huawei.com> (raw)


Signed-off-by: Libo Chen <clbchenlibo.chen@huawei.com>
---
 fs/ceph/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/ceph/file.c b/fs/ceph/file.c
index 3de8982..7549bd6 100644
--- a/fs/ceph/file.c
+++ b/fs/ceph/file.c
@@ -1018,7 +1018,7 @@ static long ceph_fallocate(struct file *file, int mode,
 				loff_t offset, loff_t length)
 {
 	struct ceph_file_info *fi = file->private_data;
-	struct inode *inode = file->f_dentry->d_inode;
+	struct inode *inode = file_inode(file);
 	struct ceph_inode_info *ci = ceph_inode(inode);
 	struct ceph_osd_client *osdc =
 		&ceph_inode_to_client(inode)->client->osdc;
-- 
1.8.2.2


WARNING: multiple messages have this Message-ID (diff)
From: Libo Chen <clbchenlibo.chen@huawei.com>
To: <sage@inktank.com>, majianpeng <majianpeng@gmail.com>,
	<yunchuanwen@ubuntukylin.com>, <liwang@ubuntukylin.com>,
	<zheng.z.yan@intel.com>
Cc: <ceph-devel@vger.kernel.org>, LKML <linux-kernel@vger.kernel.org>,
	"Li Zefan" <lizefan@huawei.com>, <milosz@adfin.com>
Subject: [PATCH] fs: ceph: new helper: file_inode(file)
Date: Wed, 11 Dec 2013 13:49:11 +0800	[thread overview]
Message-ID: <52A7FCD7.2080809@huawei.com> (raw)


Signed-off-by: Libo Chen <clbchenlibo.chen@huawei.com>
---
 fs/ceph/file.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/ceph/file.c b/fs/ceph/file.c
index 3de8982..7549bd6 100644
--- a/fs/ceph/file.c
+++ b/fs/ceph/file.c
@@ -1018,7 +1018,7 @@ static long ceph_fallocate(struct file *file, int mode,
 				loff_t offset, loff_t length)
 {
 	struct ceph_file_info *fi = file->private_data;
-	struct inode *inode = file->f_dentry->d_inode;
+	struct inode *inode = file_inode(file);
 	struct ceph_inode_info *ci = ceph_inode(inode);
 	struct ceph_osd_client *osdc =
 		&ceph_inode_to_client(inode)->client->osdc;
-- 
1.8.2.2


             reply	other threads:[~2013-12-11  5:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-11  5:49 Libo Chen [this message]
2013-12-11  5:49 ` [PATCH] fs: ceph: new helper: file_inode(file) Libo Chen
2013-12-11  5:53 ` Sage Weil

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=52A7FCD7.2080809@huawei.com \
    --to=clbchenlibo.chen@huawei.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=liwang@ubuntukylin.com \
    --cc=lizefan@huawei.com \
    --cc=majianpeng@gmail.com \
    --cc=milosz@adfin.com \
    --cc=sage@inktank.com \
    --cc=yunchuanwen@ubuntukylin.com \
    --cc=zheng.z.yan@intel.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.