From 6e0fdac887b4852ebe20d2452be27e674e44bef2 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 15 Apr 2015 13:07:46 +0200 Subject: [PATCH] scst: RHEL 5 build fix for file_inode() Signed-off-by: Bart Van Assche --- 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 c689a3391..de31644b4 100644 --- a/scst/include/scst.h +++ b/scst/include/scst.h @@ -278,11 +278,12 @@ static inline void hex2bin(u8 *dst, const char *src, size_t count) #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 9, 0) /* * 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