zfs: even up assert

This commit is contained in:
Mateusz Guzik 2020-11-04 21:18:27 +00:00
parent 6fc2b069ca
commit 8ce21ae6ba

View File

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