zfs: even up assert
This commit is contained in:
parent
6fc2b069ca
commit
8ce21ae6ba
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user