svn commit: r285185 - head/sys/kern

Mark Johnston markj at FreeBSD.org
Sun Jul 5 22:56:43 UTC 2015


Author: markj
Date: Sun Jul  5 22:56:41 2015
New Revision: 285185
URL: https://svnweb.freebsd.org/changeset/base/285185

Log:
  Move the comment describing namei(9) back to namei()'s definition.
  
  MFC after:	3 days

Modified:
  head/sys/kern/vfs_lookup.c

Modified: head/sys/kern/vfs_lookup.c
==============================================================================
--- head/sys/kern/vfs_lookup.c	Sun Jul  5 22:49:26 2015	(r285184)
+++ head/sys/kern/vfs_lookup.c	Sun Jul  5 22:56:41 2015	(r285185)
@@ -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
  *		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)
 {


More information about the svn-src-head mailing list