aboutsummaryrefslogtreecommitdiffstats
path: root/include/os/freebsd/zfs/sys/zfs_znode_impl.h
diff options
context:
space:
mode:
authorMateusz Guzik <[email protected]>2020-11-04 17:23:48 -0500
committerBrian Behlendorf <[email protected]>2021-03-12 15:51:39 -0800
commit5ebe425a5bf332ab1d77d78eb3bfd9594b5d7250 (patch)
tree3d7bef17b99d18160814207b62fc55b3ad5acf6d /include/os/freebsd/zfs/sys/zfs_znode_impl.h
parent9847f77f012b0ea4d54a7151c726e63122e2117d (diff)
Macroify teardown lock handling
This will allow platforms to implement it as they see fit, in particular in a different manner than rrm locks. 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 'include/os/freebsd/zfs/sys/zfs_znode_impl.h')
-rw-r--r--include/os/freebsd/zfs/sys/zfs_znode_impl.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/os/freebsd/zfs/sys/zfs_znode_impl.h b/include/os/freebsd/zfs/sys/zfs_znode_impl.h
index 7a60eb58b..d7cdb360c 100644
--- a/include/os/freebsd/zfs/sys/zfs_znode_impl.h
+++ b/include/os/freebsd/zfs/sys/zfs_znode_impl.h
@@ -124,15 +124,15 @@ extern minor_t zfsdev_minor_alloc(void);
/* Called on entry to each ZFS vnode and vfs operation */
#define ZFS_ENTER(zfsvfs) \
{ \
- rrm_enter_read(&(zfsvfs)->z_teardown_lock, FTAG); \
+ ZFS_TEARDOWN_ENTER_READ((zfsvfs), FTAG); \
if (__predict_false((zfsvfs)->z_unmounted)) { \
- ZFS_EXIT(zfsvfs); \
+ ZFS_TEARDOWN_EXIT_READ(zfsvfs, FTAG); \
return (EIO); \
} \
}
/* Must be called before exiting the vop */
-#define ZFS_EXIT(zfsvfs) rrm_exit(&(zfsvfs)->z_teardown_lock, FTAG)
+#define ZFS_EXIT(zfsvfs) ZFS_TEARDOWN_EXIT_READ(zfsvfs, FTAG)
/* Verifies the znode is valid */
#define ZFS_VERIFY_ZP(zp) \