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",
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to