Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/yamt-uio_vmspace]: src/sys/miscfs/kernfs adapt kernfs.



details:   https://anonhg.NetBSD.org/src/rev/32f53b4e0da5
branches:  yamt-uio_vmspace
changeset: 586715:32f53b4e0da5
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sun Feb 05 13:20:21 2006 +0000

description:
adapt kernfs.

diffstat:

 sys/miscfs/kernfs/kernfs_vnops.c |  13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diffs (34 lines):

diff -r 98fdc185f917 -r 32f53b4e0da5 sys/miscfs/kernfs/kernfs_vnops.c
--- a/sys/miscfs/kernfs/kernfs_vnops.c  Sun Feb 05 12:54:07 2006 +0000
+++ b/sys/miscfs/kernfs/kernfs_vnops.c  Sun Feb 05 13:20:21 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kernfs_vnops.c,v 1.116 2005/12/24 20:45:09 perry Exp $ */
+/*     $NetBSD: kernfs_vnops.c,v 1.116.2.1 2006/02/05 13:20:21 yamt Exp $      */
 
 /*
  * Copyright (c) 1992, 1993
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kernfs_vnops.c,v 1.116 2005/12/24 20:45:09 perry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kernfs_vnops.c,v 1.116.2.1 2006/02/05 13:20:21 yamt Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ipsec.h"
@@ -1017,10 +1017,11 @@
                return error;
        if (kt->kt_tag == KFSdevice) {
                struct vattr va;
-               if ((error = VOP_GETATTR(vp, &va, ap->a_cred,
-                   ap->a_uio->uio_segflg == UIO_USERSPACE ?
-                   ap->a_uio->uio_lwp : &lwp0)) != 0)
-                       return (error);
+
+               error = VOP_GETATTR(vp, &va, ap->a_cred, curlwp);
+               if (error != 0) {
+                       return error;
+               }
                d->d_fileno = va.va_fileid;
        } else {
                kfs = VTOKERN(vp);



Home | Main Index | Thread Index | Old Index