From 3872d812f835c187f2ba6a58ced2098849dfc659 Mon Sep 17 00:00:00 2001 From: Alex Hornung Date: Fri, 12 Mar 2010 23:07:27 +0000 Subject: [PATCH] procfs - Use newly introduced textnch * Use the newly introduced p_textnch instead of p_textvp to find the path to the .text file for each proc entry in /proc. --- sys/vfs/procfs/procfs_vnops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/vfs/procfs/procfs_vnops.c b/sys/vfs/procfs/procfs_vnops.c index 87de8843e1..ad8eb3a975 100644 --- a/sys/vfs/procfs/procfs_vnops.c +++ b/sys/vfs/procfs/procfs_vnops.c @@ -579,7 +579,7 @@ procfs_getattr(struct vop_getattr_args *ap) case Pfile: { char *fullpath, *freepath; - error = vn_fullpath(procp, NULL, &fullpath, &freepath); + error = cache_fullpath(procp, &procp->p_textnch, &fullpath, &freepath); if (error == 0) { vap->va_size = strlen(fullpath); kfree(freepath, M_TEMP); @@ -1040,7 +1040,7 @@ procfs_readlink(struct vop_readlink_args *ap) return (uiomove("unknown", sizeof("unknown") - 1, ap->a_uio)); } - error = vn_fullpath(procp, NULL, &fullpath, &freepath); + error = cache_fullpath(procp, &procp->p_textnch, &fullpath, &freepath); if (error != 0) return (uiomove("unknown", sizeof("unknown") - 1, ap->a_uio)); -- 2.11.4.GIT