]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - fs/ocfs2/move_extents.c
new helper: file_inode(file)
[mirror_ubuntu-artful-kernel.git] / fs / ocfs2 / move_extents.c
index 6083432f667e3077eb466842ef0f00136d0b4b6f..9f8dcadd9a50e0f3cfcee42553ce4ff7243b2930 100644 (file)
@@ -1055,7 +1055,7 @@ int ocfs2_ioctl_move_extents(struct file *filp, void __user *argp)
 {
        int status;
 
-       struct inode *inode = filp->f_path.dentry->d_inode;
+       struct inode *inode = file_inode(filp);
        struct ocfs2_move_extents range;
        struct ocfs2_move_extents_context *context = NULL;