mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Linux 3.19 compat: file_inode was added
struct access f->f_dentry->d_inode was replaced by accessor function file_inode(f) Signed-off-by: Joerg Thalheim <joerg@higgsboson.tk> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #3084
This commit is contained in:
committed by
Brian Behlendorf
parent
77aef6f60e
commit
534759fad3
@@ -21,6 +21,7 @@
|
||||
|
||||
/*
|
||||
* Copyright (C) 2011 Lawrence Livermore National Security, LLC.
|
||||
* Copyright (C) 2015 Jörg Thalheim.
|
||||
*/
|
||||
|
||||
#ifndef _ZFS_VFS_H
|
||||
@@ -328,4 +329,16 @@ current_umask(void)
|
||||
#define zpl_inode_owner_or_capable(ip) is_owner_or_cap(ip)
|
||||
#endif /* HAVE_INODE_OWNER_OR_CAPABLE */
|
||||
|
||||
/*
|
||||
* 3.19 API change
|
||||
* struct access f->f_dentry->d_inode was replaced by accessor function
|
||||
* file_inode(f)
|
||||
*/
|
||||
#ifndef HAVE_FILE_INODE
|
||||
static inline struct inode *file_inode(const struct file *f)
|
||||
{
|
||||
return (f->f_dentry->d_inode);
|
||||
}
|
||||
#endif /* HAVE_FILE_INODE */
|
||||
|
||||
#endif /* _ZFS_VFS_H */
|
||||
|
||||
Reference in New Issue
Block a user