zfs: even up assert

This commit is contained in:
Mateusz Guzik 2020-11-04 21:18:27 +00:00
parent 6fc2b069ca
commit 8ce21ae6ba
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=367342

View File

@ -206,10 +206,11 @@ zfs_dd_lookup(znode_t *dzp, znode_t **zpp)
uint64_t parent;
int error;
#ifdef ZFS_DEBUG
if (zfsvfs->z_replay == B_FALSE)
ASSERT_VOP_LOCKED(ZTOV(dzp), __func__);
ASSERT(RRM_READ_HELD(&zfsvfs->z_teardown_lock));
#endif
if (dzp->z_unlinked)
return (ENOENT);