aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/vfs_lookup.c
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2015-07-05 22:56:41 +0000
committerMark Johnston <markj@FreeBSD.org>2015-07-05 22:56:41 +0000
commit947401dd50d2db30bd1d94d3386e16b8aec1aee0 (patch)
tree2938423215aaa41f6f643e0011228de0dea6d17e /sys/kern/vfs_lookup.c
parent31d81a431606984b3c12f1903dbfc8b28b63218b (diff)
downloadsrc-947401dd50d2db30bd1d94d3386e16b8aec1aee0.tar.gz
src-947401dd50d2db30bd1d94d3386e16b8aec1aee0.zip
Notes
Diffstat (limited to 'sys/kern/vfs_lookup.c')
-rw-r--r--sys/kern/vfs_lookup.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c
index f2ffab2e9bfe..5dc07dc56d33 100644
--- a/sys/kern/vfs_lookup.c
+++ b/sys/kern/vfs_lookup.c
@@ -99,6 +99,16 @@ static int lookup_shared = 1;
SYSCTL_INT(_vfs, OID_AUTO, lookup_shared, CTLFLAG_RWTUN, &lookup_shared, 0,
"Enables/Disables shared locks for path name translation");
+static void
+namei_cleanup_cnp(struct componentname *cnp)
+{
+ uma_zfree(namei_zone, cnp->cn_pnbuf);
+#ifdef DIAGNOSTIC
+ cnp->cn_pnbuf = NULL;
+ cnp->cn_nameptr = NULL;
+#endif
+}
+
/*
* Convert a pathname into a pointer to a locked vnode.
*
@@ -119,16 +129,6 @@ SYSCTL_INT(_vfs, OID_AUTO, lookup_shared, CTLFLAG_RWTUN, &lookup_shared, 0,
* if symbolic link, massage name in buffer and continue
* }
*/
-static void
-namei_cleanup_cnp(struct componentname *cnp)
-{
- uma_zfree(namei_zone, cnp->cn_pnbuf);
-#ifdef DIAGNOSTIC
- cnp->cn_pnbuf = NULL;
- cnp->cn_nameptr = NULL;
-#endif
-}
-
int
namei(struct nameidata *ndp)
{