aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-06-14 19:03:41 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-06-23 20:46:15 +0000
commit802cf4ab0ee9cae7af523cfcf1221febd2143210 (patch)
tree59c350e936caad76cb1748cdc25653e63162b749 /sys/sys
parent71faea93070e6df371bf73ed12e2a1da27dc8e2d (diff)
downloadsrc-802cf4ab0ee9cae7af523cfcf1221febd2143210.tar.gz
src-802cf4ab0ee9cae7af523cfcf1221febd2143210.zip
namei: add NDPREINIT() macro
Its intent is to do the initialization of the future part of struct nameidata which should be used across several namei() and VOPs. Right now it is NOP. Reviewed by: mckusick Discussed with: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D30041
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/namei.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/namei.h b/sys/sys/namei.h
index 5f3d917083a5..b4db0e758e2b 100644
--- a/sys/sys/namei.h
+++ b/sys/sys/namei.h
@@ -265,6 +265,9 @@ do { \
_ndp->ni_startdir = NULL; \
} while (0)
+#define NDPREINIT(ndp) do { \
+} while (0)
+
#define NDF_NO_DVP_RELE 0x00000001
#define NDF_NO_DVP_UNLOCK 0x00000002
#define NDF_NO_DVP_PUT 0x00000003