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
This commit is contained in:
Bart Van Assche
2015-06-11 04:19:47 +00:00
parent e01d03fe2f
commit b7ec40e6a7

View File

@@ -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