14 lines
417 B
Diff
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
|
|
}
|
|
|