Fix a few small glitches (struct proc -> struct lwp)

This commit is contained in:
martin 2003-06-29 12:17:21 +00:00
parent 5dcb6d7469
commit b13abb2046
3 changed files with 10 additions and 10 deletions

View File

@ -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 <sys/cdefs.h>
__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 <sys/param.h>
#include <sys/systm.h>
@ -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);

View File

@ -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 <sys/cdefs.h>
__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);

View File

@ -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 <sys/cdefs.h>
__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 <sys/param.h>
#include <sys/systm.h>
@ -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);