From: Libo Chen Date: Wed, 11 Dec 2013 05:49:11 +0000 (+0800) Subject: fs: ceph: new helper: file_inode(file) X-Git-Tag: v3.14-rc1~71^2~70 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa8b60e077fa2a4383e79b092b65cd5455ea5ab2;p=kernel%2Fkernel-generic.git fs: ceph: new helper: file_inode(file) Signed-off-by: Libo Chen Signed-off-by: Sage Weil --- diff --git a/fs/ceph/file.c b/fs/ceph/file.c index c4419e8..d10510a 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;