svn commit: r193186 - head/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Sun May 31 20:16:10 UTC 2009
Author: kib
Date: Sun May 31 20:16:06 2009
New Revision: 193186
URL: http://svn.freebsd.org/changeset/base/193186
Log:
Unbreak the build. Add missed probes.
Reviewed by: rwatson
Pointy hat to: me
Modified:
head/sys/kern/vfs_cache.c
Modified: head/sys/kern/vfs_cache.c
==============================================================================
--- head/sys/kern/vfs_cache.c Sun May 31 19:37:06 2009 (r193185)
+++ head/sys/kern/vfs_cache.c Sun May 31 20:16:06 2009 (r193186)
@@ -1073,7 +1073,7 @@ vn_vptocnp_locked(struct vnode **vp, cha
numfullpathfail4++;
error = ENOMEM;
SDT_PROBE(vfs, namecache, fullpath, return, error,
- startvp, NULL, 0, 0);
+ vp, NULL, 0, 0);
return (error);
}
*buflen -= ncp->nc_nlen;
@@ -1095,7 +1095,7 @@ vn_vptocnp_locked(struct vnode **vp, cha
VFS_UNLOCK_GIANT(vfslocked);
if (error) {
numfullpathfail2++;
- SDT_PROBE(vfs, namecache, fullpath, return, error, startvp,
+ SDT_PROBE(vfs, namecache, fullpath, return, error, vp,
NULL, 0, 0);
return (error);
}
@@ -1107,7 +1107,7 @@ vn_vptocnp_locked(struct vnode **vp, cha
CACHE_RUNLOCK();
vdrop(*vp);
error = ENOENT;
- SDT_PROBE(vfs, namecache, fullpath, return, error, startvp,
+ SDT_PROBE(vfs, namecache, fullpath, return, error, vp,
NULL, 0, 0);
return (error);
}
@@ -1150,6 +1150,8 @@ vn_fullpath1(struct thread *td, struct v
if (vp->v_iflag & VI_DOOMED) { /* forced unmount */
CACHE_RUNLOCK();
error = ENOENT;
+ SDT_PROBE(vfs, namecache, fullpath, return,
+ error, vp, NULL, 0, 0);
break;
}
vp = vp->v_mount->mnt_vnodecovered;
@@ -1159,6 +1161,8 @@ vn_fullpath1(struct thread *td, struct v
CACHE_RUNLOCK();
numfullpathfail1++;
error = ENOTDIR;
+ SDT_PROBE(vfs, namecache, fullpath, return,
+ error, vp, NULL, 0, 0);
break;
}
error = vn_vptocnp_locked(&vp, buf, &buflen);
@@ -1166,6 +1170,8 @@ vn_fullpath1(struct thread *td, struct v
break;
if (buflen == 0) {
error = ENOMEM;
+ SDT_PROBE(vfs, namecache, fullpath, return, error,
+ startvp, NULL, 0, 0);
break;
}
buf[--buflen] = '/';
@@ -1177,8 +1183,8 @@ vn_fullpath1(struct thread *td, struct v
if (buflen == 0) {
CACHE_RUNLOCK();
numfullpathfail4++;
- SDT_PROBE(vfs, namecache, fullpath, return, 0,
- startvp, fullpath, 0, 0);
+ SDT_PROBE(vfs, namecache, fullpath, return, ENOMEM,
+ startvp, NULL, 0, 0);
return (ENOMEM);
}
buf[--buflen] = '/';
@@ -1186,7 +1192,7 @@ vn_fullpath1(struct thread *td, struct v
numfullpathfound++;
CACHE_RUNLOCK();
- SDT_PROBE(vfs, namecache, fullpath, return, 0, startvp, buf + *buflen,
+ SDT_PROBE(vfs, namecache, fullpath, return, 0, startvp, buf + buflen,
0, 0);
*retbuf = buf + buflen;
return (0);
More information about the svn-src-all
mailing list