aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2021-01-12 11:36:30 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2021-01-12 13:16:10 +0000
commitcdb62ab74ee0cb99988c7831d950a6021aaa4879 (patch)
tree1f0850e494c28af6bcc382020c2b795aa0908c37 /sys/sys
parent6b3a9a0f3d2cd66145e89fdd8d07cb33a9963e8f (diff)
downloadsrc-cdb62ab74ee0cb99988c7831d950a6021aaa4879.tar.gz
src-cdb62ab74ee0cb99988c7831d950a6021aaa4879.zip
vfs: add NDFREE_NOTHING and convert several NDFREE_PNBUF callers
Check the comment above the routine for reasoning.
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/namei.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/namei.h b/sys/sys/namei.h
index ddba9cbd8912..c045bc7c6bc5 100644
--- a/sys/sys/namei.h
+++ b/sys/sys/namei.h
@@ -288,8 +288,10 @@ void NDFREE(struct nameidata *, const u_int);
} while (0)
#ifdef INVARIANTS
+void NDFREE_NOTHING(struct nameidata *);
void NDVALIDATE(struct nameidata *);
#else
+#define NDFREE_NOTHING(ndp) do { } while (0)
#define NDVALIDATE(ndp) do { } while (0)
#endif