new helper: file_inode(file)
[linux-block.git] / fs / ceph / locks.c
index 80576d05d687639bc72fb089b6803980500dbbd3..202dd3d68be02f608c0998ab1272cccf91249769 100644 (file)
@@ -13,7 +13,7 @@
 static int ceph_lock_message(u8 lock_type, u16 operation, struct file *file,
                             int cmd, u8 wait, struct file_lock *fl)
 {
-       struct inode *inode = file->f_dentry->d_inode;
+       struct inode *inode = file_inode(file);
        struct ceph_mds_client *mdsc =
                ceph_sb_to_client(inode->i_sb)->mdsc;
        struct ceph_mds_request *req;