zfs: plug a vnode reserve leak in zfs_make_xattrdir

This commit is contained in:
Mateusz Guzik 2020-01-07 04:34:29 +00:00
parent cc2b586d69
commit 75ad73a8b9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=356436

View File

@ -829,6 +829,7 @@ zfs_make_xattrdir(znode_t *zp, vattr_t *vap, vnode_t **xvpp, cred_t *cr)
if (error) {
zfs_acl_ids_free(&acl_ids);
dmu_tx_abort(tx);
getnewvnode_drop_reserve();
return (error);
}
zfs_mknode(zp, vap, tx, cr, IS_XATTR, &xzp, &acl_ids);