aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2025-09-27 02:01:32 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2025-09-27 04:00:59 +0000
commit08f06aa1b4fb6db0d8beb3e1c328b1c1adbec13a (patch)
tree24db88121dd6c91610f8614e90bfe33019640ef4
parent5c0e5f418d9ff68a21d606d62b5fb748b7de229b (diff)
vfs: retire the VCALL macro
There is precisely one place using it and even that should probably go away.
-rw-r--r--sys/fs/nullfs/null_vnops.c2
-rw-r--r--sys/sys/vnode.h5
2 files changed, 1 insertions, 6 deletions
diff --git a/sys/fs/nullfs/null_vnops.c b/sys/fs/nullfs/null_vnops.c
index 74c1a8f3acb6..ba29b0485326 100644
--- a/sys/fs/nullfs/null_vnops.c
+++ b/sys/fs/nullfs/null_vnops.c
@@ -306,7 +306,7 @@ null_bypass(struct vop_generic_args *ap)
* with the modified argument structure.
*/
if (vps_p[0] != NULL && *vps_p[0] != NULL) {
- error = VCALL(ap);
+ error = ap->a_desc->vdesc_call(ap);
} else {
printf("null_bypass: no map for %s\n", descp->vdesc_name);
error = EINVAL;
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h
index 6ef9bbec9446..fcfb8716fc52 100644
--- a/sys/sys/vnode.h
+++ b/sys/sys/vnode.h
@@ -594,11 +594,6 @@ void assert_vop_unlocked(struct vnode *vp, const char *str);
#endif /* INVARIANTS */
-/*
- * This call works for vnodes in the kernel.
- */
-#define VCALL(c) ((c)->a_desc->vdesc_call(c))
-
#define DOINGASYNC(vp) \
(((vp)->v_mount->mnt_kern_flag & MNTK_ASYNC) != 0 && \
((curthread->td_pflags & TDP_SYNCIO) == 0))