mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-30 10:44:09 +03:00
FreeBSD: Add zfs_link_create() error handling
Originally Solaris didn't expect errors there, but they may happen if we fail to add entry into ZAP. Linux fixed it in #7421, but it was never fully ported to FreeBSD. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Alexander Motin <mav@FreeBSD.org> Sponsored-By: iXsystems, Inc. Closes #13215 Closes #16138
This commit is contained in:
committed by
Brian Behlendorf
parent
fa4b1a404e
commit
4c0fbd8d6d
@@ -543,6 +543,7 @@ zfs_rmnode(znode_t *zp)
|
||||
dataset_kstats_update_nunlinked_kstat(&zfsvfs->z_kstat, 1);
|
||||
|
||||
zfs_znode_delete(zp, tx);
|
||||
zfs_znode_free(zp);
|
||||
|
||||
dmu_tx_commit(tx);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user