nixpkgs/pkgs/os-specific/linux/fusionio/vsl-fix-file-inode.patch

14 lines
417 B
Diff
Raw Normal View History

2015-04-28 00:58:34 +02:00
diff --git a/kfile.c b/kfile.c
index 5014e77..a65d921 100644
--- a/kfile.c
+++ b/kfile.c
@@ -51,7 +51,7 @@ fusion_inode * noinline kfio_fs_inode(fusion_file *fp)
#if KFIOC_STRUCT_FILE_HAS_PATH
return (fusion_inode *) ((struct file *)fp)->f_path.dentry->d_inode;
#else
- return (fusion_inode *) ((struct file *)fp)->f_dentry->d_inode;
+ return (fusion_inode *) file_inode((struct file *)fp);
#endif
}