Date: Sun, 5 Jul 2015 22:56:42 +0000 (UTC) From: Mark Johnston <markj@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r285185 - head/sys/kern Message-ID: <201507052256.t65Mug3s016560@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507052256.t65Mug3s016560>