Date: Thu, 16 Mar 2017 08:38:00 +0000 (UTC) From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r315397 - stable/11/sys/kern Message-ID: <201703160838.v2G8c1Qw033289@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703160838.v2G8c1Qw033289>