zfs: even up assert
This commit is contained in:
parent
6fc2b069ca
commit
8ce21ae6ba
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=367342
@ -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