Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Add missing BUFQ_INSERT_HEAD().
details: https://anonhg.NetBSD.org/src/rev/a20f61b45994
branches: trunk
changeset: 481172:a20f61b45994
user: thorpej <thorpej%NetBSD.org@localhost>
date: Mon Jan 24 03:42:57 2000 +0000
description:
Add missing BUFQ_INSERT_HEAD().
diffstat:
sys/sys/buf.h | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r 4f84330c597c -r a20f61b45994 sys/sys/buf.h
--- a/sys/sys/buf.h Mon Jan 24 03:08:12 2000 +0000
+++ b/sys/sys/buf.h Mon Jan 24 03:42:57 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: buf.h,v 1.36 2000/01/21 23:20:51 thorpej Exp $ */
+/* $NetBSD: buf.h,v 1.37 2000/01/24 03:42:57 thorpej Exp $ */
/*-
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -107,6 +107,14 @@
(bufq)->bq_barrier = NULL; \
} while (/*CONSTCOND*/0)
+#define BUFQ_INSERT_HEAD(bufq, bp) \
+do { \
+ TAILQ_INSERT_HEAD(&(bufq)->bq_head, (bp), b_actq); \
+ if (((bp)->b_flags & B_ORDERED) != 0 && \
+ (bufq)->bq_barrier == NULL) \
+ (bufq)->bq_barrier = (bp); \
+} while (0)
+
#define BUFQ_INSERT_TAIL(bufq, bp) \
do { \
TAILQ_INSERT_TAIL(&(bufq)->bq_head, (bp), b_actq); \
Home |
Main Index |
Thread Index |
Old Index