svn commit: r297159 - head/sys/dev/filemon

Bryan Drewery bdrewery at FreeBSD.org
Mon Mar 21 20:29:48 UTC 2016


Author: bdrewery
Date: Mon Mar 21 20:29:46 2016
New Revision: 297159
URL: https://svnweb.freebsd.org/changeset/base/297159

Log:
  Use curthread for vn_fullpath.
  
  No functional change.
  
  MFC after:	2 weeks
  Sponsored by:	EMC / Isilon Storage Division

Modified:
  head/sys/dev/filemon/filemon_wrapper.c

Modified: head/sys/dev/filemon/filemon_wrapper.c
==============================================================================
--- head/sys/dev/filemon/filemon_wrapper.c	Mon Mar 21 20:29:43 2016	(r297158)
+++ head/sys/dev/filemon/filemon_wrapper.c	Mon Mar 21 20:29:46 2016	(r297159)
@@ -103,8 +103,7 @@ filemon_event_process_exec(void *arg __u
 		fullpath = "<unknown>";
 		freepath = NULL;
 
-		vn_fullpath(FIRST_THREAD_IN_PROC(p), imgp->vp, &fullpath,
-		    &freepath);
+		vn_fullpath(curthread, imgp->vp, &fullpath, &freepath);
 
 		len = snprintf(filemon->msgbufr,
 		    sizeof(filemon->msgbufr), "E %d %s\n",


More information about the svn-src-all mailing list