summaryrefslogtreecommitdiffstats
path: root/fs/ceph/file.c
diff options
context:
space:
mode:
authorLibo Chen2013-12-11 06:49:11 +0100
committerSage Weil2013-12-13 18:13:29 +0100
commitaa8b60e077fa2a4383e79b092b65cd5455ea5ab2 (patch)
treee500f78df63d076a19a8a5ff9e063393ccec6377 /fs/ceph/file.c
parentceph: Add necessary clean up if invalid reply received in handle_reply() (diff)
downloadkernel-qcow2-linux-aa8b60e077fa2a4383e79b092b65cd5455ea5ab2.tar.gz
kernel-qcow2-linux-aa8b60e077fa2a4383e79b092b65cd5455ea5ab2.tar.xz
kernel-qcow2-linux-aa8b60e077fa2a4383e79b092b65cd5455ea5ab2.zip
fs: ceph: new helper: file_inode(file)
Signed-off-by: Libo Chen <clbchenlibo.chen@huawei.com> Signed-off-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'fs/ceph/file.c')
-rw-r--r--fs/ceph/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/file.c b/fs/ceph/file.c
index c4419e848a4f..d10510a4733d 100644
--- a/fs/ceph/file.c
+++ b/fs/ceph/file.c
@@ -1201,7 +1201,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;