mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 03:37:45 +03:00
Eliminate Linux specific inode usage from common code
Change many of the znops routines to take a znode rather than an inode so that zfs_replay code can be largely shared and in the future the much of the znops code may be shared. Reviewed-by: Jorgen Lundman <lundman@lundman.net> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Closes #9708
This commit is contained in:
committed by
Brian Behlendorf
parent
f0bf435176
commit
657ce25357
@@ -2540,14 +2540,14 @@ zfs_zaccess(znode_t *zp, int mode, int flags, boolean_t skipaclchk, cred_t *cr)
|
||||
if ((error = zfs_zaccess_common(check_zp, mode, &working_mode,
|
||||
&check_privs, skipaclchk, cr)) == 0) {
|
||||
if (is_attr)
|
||||
iput(ZTOI(xzp));
|
||||
zrele(xzp);
|
||||
return (secpolicy_vnode_access2(cr, ZTOI(zp), owner,
|
||||
needed_bits, needed_bits));
|
||||
}
|
||||
|
||||
if (error && !check_privs) {
|
||||
if (is_attr)
|
||||
iput(ZTOI(xzp));
|
||||
zrele(xzp);
|
||||
return (error);
|
||||
}
|
||||
|
||||
@@ -2609,7 +2609,7 @@ zfs_zaccess(znode_t *zp, int mode, int flags, boolean_t skipaclchk, cred_t *cr)
|
||||
}
|
||||
|
||||
if (is_attr)
|
||||
iput(ZTOI(xzp));
|
||||
zrele(xzp);
|
||||
|
||||
return (error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user