From b13abb2046118ccbbdbefd05c10eb686877a48ba Mon Sep 17 00:00:00 2001 From: martin Date: Sun, 29 Jun 2003 12:17:21 +0000 Subject: [PATCH] Fix a few small glitches (struct proc -> struct lwp) --- sys/fs/smbfs/smbfs_kq.c | 6 +++--- sys/fs/smbfs/smbfs_vfsops.c | 6 +++--- sys/fs/smbfs/smbfs_vnops.c | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/sys/fs/smbfs/smbfs_kq.c b/sys/fs/smbfs/smbfs_kq.c index c40774dc430a..be5820dff701 100644 --- a/sys/fs/smbfs/smbfs_kq.c +++ b/sys/fs/smbfs/smbfs_kq.c @@ -1,4 +1,4 @@ -/* $NetBSD: smbfs_kq.c,v 1.5 2003/06/28 14:21:51 darrenr Exp $ */ +/* $NetBSD: smbfs_kq.c,v 1.6 2003/06/29 12:17:21 martin Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: smbfs_kq.c,v 1.5 2003/06/28 14:21:51 darrenr Exp $"); +__KERNEL_RCSID(0, "$NetBSD: smbfs_kq.c,v 1.6 2003/06/29 12:17:21 martin Exp $"); #include #include @@ -440,7 +440,7 @@ smbfs_kqfilter(void *v) if (!smbkqp) { error = kthread_create1(smbfs_kqpoll, NULL, &smbkqp, "smbkq"); - smb_makescred(&smbkq_scred, smbkqp, smbkqp->p_ucred); + smb_makescred(&smbkq_scred, LIST_FIRST(&smbkqp->p_lwps), smbkqp->p_ucred); if (error) { kevs--; return (error); diff --git a/sys/fs/smbfs/smbfs_vfsops.c b/sys/fs/smbfs/smbfs_vfsops.c index 282cd5c80a8b..113f62726b62 100644 --- a/sys/fs/smbfs/smbfs_vfsops.c +++ b/sys/fs/smbfs/smbfs_vfsops.c @@ -1,4 +1,4 @@ -/* $NetBSD: smbfs_vfsops.c,v 1.28 2003/06/28 14:21:51 darrenr Exp $ */ +/* $NetBSD: smbfs_vfsops.c,v 1.29 2003/06/29 12:17:21 martin Exp $ */ /* * Copyright (c) 2000-2001, Boris Popov @@ -35,7 +35,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: smbfs_vfsops.c,v 1.28 2003/06/28 14:21:51 darrenr Exp $"); +__KERNEL_RCSID(0, "$NetBSD: smbfs_vfsops.c,v 1.29 2003/06/29 12:17:21 martin Exp $"); #ifdef _KERNEL_OPT #include "opt_quota.h" @@ -177,7 +177,7 @@ smbfs_mount(struct mount *mp, const char *path, void *data, (S_IRWXU|S_IRWXG|S_IRWXO)) | S_IFDIR; error = set_statfs_info(path, UIO_USERSPACE, NULL, UIO_USERSPACE, - mp, p); + mp, l); if (error) goto bad; memset(mp->mnt_stat.f_mntfromname, 0, MNAMELEN); diff --git a/sys/fs/smbfs/smbfs_vnops.c b/sys/fs/smbfs/smbfs_vnops.c index 9eb7422a7e98..67999a401637 100644 --- a/sys/fs/smbfs/smbfs_vnops.c +++ b/sys/fs/smbfs/smbfs_vnops.c @@ -1,4 +1,4 @@ -/* $NetBSD: smbfs_vnops.c,v 1.26 2003/06/28 14:21:51 darrenr Exp $ */ +/* $NetBSD: smbfs_vnops.c,v 1.27 2003/06/29 12:17:22 martin Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. @@ -71,7 +71,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: smbfs_vnops.c,v 1.26 2003/06/28 14:21:51 darrenr Exp $"); +__KERNEL_RCSID(0, "$NetBSD: smbfs_vnops.c,v 1.27 2003/06/29 12:17:22 martin Exp $"); #include #include @@ -307,7 +307,7 @@ smbfs_closel(struct vop_close_args *ap) return (error); } - smb_makescred(&scred, p, ap->a_cred); + smb_makescred(&scred, l, ap->a_cred); if (vp->v_type == VDIR) { struct smb_share *ssp = np->n_mount->sm_share; @@ -351,7 +351,7 @@ smbfs_close(v) struct vnode *vp = ap->a_vp; int error; - error = smbfs_vinvalbuf(vp, V_SAVE, ap->a_cred, ap->a_p, 1); + error = smbfs_vinvalbuf(vp, V_SAVE, ap->a_cred, ap->a_l, 1); if (error) return (error);