diff options
author | Matthew Macy <[email protected]> | 2019-12-11 11:53:57 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-12-11 11:53:57 -0800 |
commit | 657ce253575295ef680eb33cf4ef698548212a46 (patch) | |
tree | 18d03f0887e857b1cbfdb9c1c8b4cac4e06985ed /module/os/linux/zfs/zfs_acl.c | |
parent | f0bf4351767ab95b1b5e9baa5445db20ffacd00d (diff) |
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 <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Matt Macy <[email protected]>
Closes #9708
Diffstat (limited to 'module/os/linux/zfs/zfs_acl.c')
-rw-r--r-- | module/os/linux/zfs/zfs_acl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/os/linux/zfs/zfs_acl.c b/module/os/linux/zfs/zfs_acl.c index 1bb2b892d..ab813cf26 100644 --- a/module/os/linux/zfs/zfs_acl.c +++ b/module/os/linux/zfs/zfs_acl.c @@ -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); } |