svn commit: r367144 - head/sys/kern

Mateusz Guzik mjg at FreeBSD.org
Thu Oct 29 18:43:38 UTC 2020


Author: mjg
Date: Thu Oct 29 18:43:37 2020
New Revision: 367144
URL: https://svnweb.freebsd.org/changeset/base/367144

Log:
  vfs: add NAMEI_DBG_HADSTARTDIR handling lost in rewrite
  
  Noted by:	rpokala

Modified:
  head/sys/kern/vfs_lookup.c

Modified: head/sys/kern/vfs_lookup.c
==============================================================================
--- head/sys/kern/vfs_lookup.c	Thu Oct 29 18:39:04 2020	(r367143)
+++ head/sys/kern/vfs_lookup.c	Thu Oct 29 18:43:37 2020	(r367144)
@@ -507,6 +507,8 @@ namei(struct nameidata *ndp)
 	KASSERT(ndp->ni_debugflags == NAMEI_DBG_INITED,
 	    ("%s: bad debugflags %d", __func__, ndp->ni_debugflags));
 	ndp->ni_debugflags |= NAMEI_DBG_CALLED;
+	if (ndp->ni_startdir != NULL)
+		ndp->ni_debugflags |= NAMEI_DBG_HADSTARTDIR;
 	/*
 	 * For NDVALIDATE.
 	 *


More information about the svn-src-all mailing list