From b7ec40e6a7bd9d4075880c859bd479c2392066bb Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 11 Jun 2015 04:19:47 +0000 Subject: [PATCH] scst: RHEL 5 build fix for file_inode() git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6238 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scst/include/scst.h b/scst/include/scst.h index 8f7d497be..975463def 100644 --- a/scst/include/scst.h +++ b/scst/include/scst.h @@ -282,11 +282,12 @@ static inline void hex2bin(u8 *dst, const char *src, size_t count) !defined(CONFIG_COMPAT_KERNEL_3_12) /* * See also patch "new helper: file_inode(file)" (commit ID - * 496ad9aa8ef448058e36ca7a787c61f2e63f0f54). + * 496ad9aa8ef448058e36ca7a787c61f2e63f0f54). See also patch + * "kill f_dentry macro" (commit ID 78d28e651f97). */ static inline struct inode *file_inode(const struct file *f) { - return f->f_path.dentry->d_inode; + return f->f_dentry->d_inode; } #endif