From 4dbbb389711fd966dda7cc8b9a14ac4b76976d6d Mon Sep 17 00:00:00 2001 From: Earthman Date: Tue, 20 Jan 2015 01:37:51 +0800 Subject: [PATCH] fix exfat_super.c - newer fs.h missing "f_dentry" in struct file. use "f_path.dentry" instead of "f_dentry". --- exfat_super.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/exfat_super.c b/exfat_super.c index 7fc574a..a8283fa 100644 --- a/exfat_super.c +++ b/exfat_super.c @@ -573,7 +573,11 @@ static long exfat_generic_ioctl(struct file *filp, #endif { #if !(LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36)) - struct inode *inode = filp->f_dentry->d_inode; + #if !(LINUX_VERSION_CODE < KERNEL_VERSION(3,18,3)) + struct inode *inode = filp->f_path.dentry->d_inode; + #else + struct inode *inode = filp->f_dentry->d_inode; + #endif #endif #ifdef CONFIG_EXFAT_KERNEL_DEBUG unsigned int flags;