aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/vnode.h
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-07-30 15:50:51 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-07-30 15:50:51 +0000
commit848f8effdd69456368366a6bbdba322d0341c98e (patch)
tree1c40ecec61e3b40617474757193022deadcbb729 /sys/sys/vnode.h
parent2e4f8220e8a14671a715c34ab3bdbb9dcee3ab06 (diff)
downloadsrc-848f8effdd69456368366a6bbdba322d0341c98e.tar.gz
src-848f8effdd69456368366a6bbdba322d0341c98e.zip
vfs: inline vops if there are no pre/post associated calls
This removes a level of indirection from frequently used methods, most notably VOP_LOCK1 and VOP_UNLOCK1. Tested by: pho
Notes
Notes: svn path=/head/; revision=363708
Diffstat (limited to 'sys/sys/vnode.h')
-rw-r--r--sys/sys/vnode.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index 8273842a91f5..3a83ea5af6e1 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -869,23 +869,23 @@ void vop_symlink_post(void *a, int rc);
int vop_sigdefer(struct vop_vector *vop, struct vop_generic_args *a);
#ifdef DEBUG_VFS_LOCKS
-void vop_fplookup_vexec_pre(void *a);
-void vop_fplookup_vexec_post(void *a, int rc);
-void vop_strategy_pre(void *a);
-void vop_lock_pre(void *a);
-void vop_lock_post(void *a, int rc);
-void vop_unlock_pre(void *a);
-void vop_need_inactive_pre(void *a);
-void vop_need_inactive_post(void *a, int rc);
+void vop_fplookup_vexec_debugpre(void *a);
+void vop_fplookup_vexec_debugpost(void *a, int rc);
+void vop_strategy_debugpre(void *a);
+void vop_lock_debugpre(void *a);
+void vop_lock_debugpost(void *a, int rc);
+void vop_unlock_debugpre(void *a);
+void vop_need_inactive_debugpre(void *a);
+void vop_need_inactive_debugpost(void *a, int rc);
#else
-#define vop_fplookup_vexec_pre(x) do { } while (0)
-#define vop_fplookup_vexec_post(x, y) do { } while (0)
-#define vop_strategy_pre(x) do { } while (0)
-#define vop_lock_pre(x) do { } while (0)
-#define vop_lock_post(x, y) do { } while (0)
-#define vop_unlock_pre(x) do { } while (0)
-#define vop_need_inactive_pre(x) do { } while (0)
-#define vop_need_inactive_post(x, y) do { } while (0)
+#define vop_fplookup_vexec_debugpre(x) do { } while (0)
+#define vop_fplookup_vexec_debugpost(x, y) do { } while (0)
+#define vop_strategy_debugpre(x) do { } while (0)
+#define vop_lock_debugpre(x) do { } while (0)
+#define vop_lock_debugpost(x, y) do { } while (0)
+#define vop_unlock_debugpre(x) do { } while (0)
+#define vop_need_inactive_debugpre(x) do { } while (0)
+#define vop_need_inactive_debugpost(x, y) do { } while (0)
#endif
void vop_rename_fail(struct vop_rename_args *ap);