1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-21 05:25:38 +00:00
nixpkgs/pkgs/os-specific/linux/fusionio/vsl-fix-file-inode.patch
2015-04-27 16:00:17 -07:00

14 lines
417 B
Diff

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
}