Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/lfs init b_interlock.
details: https://anonhg.NetBSD.org/src/rev/c7a1c4d38a5d
branches: trunk
changeset: 543208:c7a1c4d38a5d
user: yamt <yamt%NetBSD.org@localhost>
date: Wed Feb 19 12:01:17 2003 +0000
description:
init b_interlock.
diffstat:
sys/ufs/lfs/lfs_bio.c | 5 +++--
sys/ufs/lfs/lfs_vfsops.c | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)
diffs (52 lines):
diff -r d561f07f2a19 -r c7a1c4d38a5d sys/ufs/lfs/lfs_bio.c
--- a/sys/ufs/lfs/lfs_bio.c Wed Feb 19 11:58:58 2003 +0000
+++ b/sys/ufs/lfs/lfs_bio.c Wed Feb 19 12:01:17 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs_bio.c,v 1.58 2003/02/17 23:48:17 perseant Exp $ */
+/* $NetBSD: lfs_bio.c,v 1.59 2003/02/19 12:01:17 yamt Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lfs_bio.c,v 1.58 2003/02/17 23:48:17 perseant Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_bio.c,v 1.59 2003/02/19 12:01:17 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -642,6 +642,7 @@
bp = pool_get(&bufpool, PR_WAITOK);
splx(s);
memset(bp, 0, sizeof(struct buf));
+ simple_lock_init(&bp->b_interlock);
if (nbytes) {
bp->b_data = lfs_malloc(fs, nbytes, type);
/* memset(bp->b_data, 0, nbytes); */
diff -r d561f07f2a19 -r c7a1c4d38a5d sys/ufs/lfs/lfs_vfsops.c
--- a/sys/ufs/lfs/lfs_vfsops.c Wed Feb 19 11:58:58 2003 +0000
+++ b/sys/ufs/lfs/lfs_vfsops.c Wed Feb 19 12:01:17 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs_vfsops.c,v 1.91 2003/02/17 23:48:21 perseant Exp $ */
+/* $NetBSD: lfs_vfsops.c,v 1.92 2003/02/19 12:01:17 yamt Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lfs_vfsops.c,v 1.91 2003/02/17 23:48:21 perseant Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_vfsops.c,v 1.92 2003/02/19 12:01:17 yamt Exp $");
#if defined(_KERNEL_OPT)
#include "opt_quota.h"
@@ -1869,6 +1869,7 @@
splx(s);
memset(mbp, 0, sizeof(*bp));
+ simple_lock_init(&mbp->b_interlock);
UVMHIST_LOG(ubchist, "vp %p mbp %p num now %d bytes 0x%x",
vp, mbp, vp->v_numoutput, bytes);
mbp->b_bufsize = npages << PAGE_SHIFT;
Home |
Main Index |
Thread Index |
Old Index