svn commit: r315397 - stable/11/sys/kern
Mateusz Guzik
mjg at FreeBSD.org
Thu Mar 16 08:38:02 UTC 2017
Author: mjg
Date: Thu Mar 16 08:38:00 2017
New Revision: 315397
URL: https://svnweb.freebsd.org/changeset/base/315397
Log:
MFC r312981:
cache: use vrefact for '.' lookups and refing the rdir in fullpath
Modified:
stable/11/sys/kern/vfs_cache.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/kern/vfs_cache.c
==============================================================================
--- stable/11/sys/kern/vfs_cache.c Thu Mar 16 08:37:05 2017 (r315396)
+++ stable/11/sys/kern/vfs_cache.c Thu Mar 16 08:38:00 2017 (r315397)
@@ -1125,7 +1125,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...
@@ -2116,7 +2116,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);
More information about the svn-src-stable-11
mailing list