Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jan 2017 03:20:06 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r312981 - head/sys/kern
Message-ID:  <201701300320.v0U3K6VH031459@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjg
Date: Mon Jan 30 03:20:05 2017
New Revision: 312981
URL: https://svnweb.freebsd.org/changeset/base/312981

Log:
  cache: use vrefact for '.' lookups and refing the rdir in fullpath

Modified:
  head/sys/kern/vfs_cache.c

Modified: head/sys/kern/vfs_cache.c
==============================================================================
--- head/sys/kern/vfs_cache.c	Mon Jan 30 03:07:32 2017	(r312980)
+++ head/sys/kern/vfs_cache.c	Mon Jan 30 03:20:05 2017	(r312981)
@@ -1124,7 +1124,7 @@ retry:
 				timespecclear(tsp);
 			if (ticksp != NULL)
 				*ticksp = ticks;
-			VREF(*vpp);
+			vrefact(*vpp);
 			/*
 			 * When we lookup "." we still can be asked to lock it
 			 * differently...
@@ -2115,7 +2115,7 @@ vn_fullpath(struct thread *td, struct vn
 	fdp = td->td_proc->p_fd;
 	FILEDESC_SLOCK(fdp);
 	rdir = fdp->fd_rdir;
-	VREF(rdir);
+	vrefact(rdir);
 	FILEDESC_SUNLOCK(fdp);
 	error = vn_fullpath1(td, vn, rdir, buf, retbuf, MAXPATHLEN);
 	vrele(rdir);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701300320.v0U3K6VH031459>