aboutsummaryrefslogtreecommitdiffstats
path: root/module/os
diff options
context:
space:
mode:
authorMateusz Guzik <[email protected]>2020-10-12 21:27:59 +0000
committerTony Hutter <[email protected]>2021-06-23 13:22:14 -0700
commit8773e29c2362701f12293d72a7c4dcb1e9368e15 (patch)
tree5914a3d4482c9f5f79f208e0c3b136284cb47a65 /module/os
parentbb21c0aa3b7b1595c81518ca81fb99e4d1bc23bb (diff)
FreeBSD: rework asserts in zfs_dd_lookup
1. even up ifdefs 2. drop the arguably useless teardown lock asserts -- nothing else checks for it Reviewed-by: Ryan Moeller <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Matt Macy <[email protected]> Signed-off-by: Mateusz Guzik <[email protected]> Closes #11153
Diffstat (limited to 'module/os')
-rw-r--r--module/os/freebsd/zfs/zfs_dir.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/module/os/freebsd/zfs/zfs_dir.c b/module/os/freebsd/zfs/zfs_dir.c
index 4b1f4a883..de145a677 100644
--- a/module/os/freebsd/zfs/zfs_dir.c
+++ b/module/os/freebsd/zfs/zfs_dir.c
@@ -206,10 +206,10 @@ 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);
@@ -233,7 +233,6 @@ zfs_dirlook(znode_t *dzp, const char *name, znode_t **zpp)
#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 (SET_ERROR(ENOENT));