From 4f0d7851428fa90b2ad3ec3718471382f04c8134 Mon Sep 17 00:00:00 2001 From: Bryan Drewery Date: Mon, 21 Mar 2016 20:29:46 +0000 Subject: [PATCH] Use curthread for vn_fullpath. No functional change. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division --- sys/dev/filemon/filemon_wrapper.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/filemon/filemon_wrapper.c b/sys/dev/filemon/filemon_wrapper.c index 4d2d88aabec1..262d6b63aeb9 100644 --- a/sys/dev/filemon/filemon_wrapper.c +++ b/sys/dev/filemon/filemon_wrapper.c @@ -103,8 +103,7 @@ filemon_event_process_exec(void *arg __unused, struct proc *p, fullpath = ""; 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",