]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
fs: ceph: new helper: file_inode(file)
authorLibo Chen <clbchenlibo.chen@huawei.com>
Wed, 11 Dec 2013 05:49:11 +0000 (13:49 +0800)
committerSage Weil <sage@inktank.com>
Fri, 13 Dec 2013 17:13:29 +0000 (09:13 -0800)
Signed-off-by: Libo Chen <clbchenlibo.chen@huawei.com>
Signed-off-by: Sage Weil <sage@inktank.com>
fs/ceph/file.c

index c4419e848a4f89eced64c8a156a560f62bc2cbdd..d10510a4733d50e7a00729545776a73eb241db31 100644 (file)
@@ -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;