mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
config: remove HAVE_FILE_INODE
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #16479
This commit is contained in:
committed by
Brian Behlendorf
parent
257e40f9d9
commit
6a1d8a9cf0
@@ -260,18 +260,6 @@ zpl_forget_cached_acl(struct inode *ip, int type)
|
||||
|
||||
#endif /* CONFIG_FS_POSIX_ACL */
|
||||
|
||||
/*
|
||||
* 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 */
|
||||
|
||||
static inline uid_t zfs_uid_read_impl(struct inode *ip)
|
||||
{
|
||||
return (from_kuid(kcred->user_ns, ip->i_uid));
|
||||
|
||||
Reference in New Issue
Block a user