[Midnightbsd-cvs] src [9139] trunk/sys/sys/buf.h: add babarrierwrite
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Oct 1 22:20:26 EDT 2016
Revision: 9139
http://svnweb.midnightbsd.org/src/?rev=9139
Author: laffer1
Date: 2016-10-01 22:20:26 -0400 (Sat, 01 Oct 2016)
Log Message:
-----------
add babarrierwrite
Modified Paths:
--------------
trunk/sys/sys/buf.h
Modified: trunk/sys/sys/buf.h
===================================================================
--- trunk/sys/sys/buf.h 2016-10-02 00:59:55 UTC (rev 9138)
+++ trunk/sys/sys/buf.h 2016-10-02 02:20:26 UTC (rev 9139)
@@ -205,7 +205,7 @@
#define B_00000800 0x00000800 /* Available flag. */
#define B_00001000 0x00001000 /* Available flag. */
#define B_INVAL 0x00002000 /* Does not contain valid info. */
-#define B_00004000 0x00004000 /* Available flag. */
+#define B_BARRIER 0x00004000 /* Write this and all preceeding first. */
#define B_NOCACHE 0x00008000 /* Do not cache block after use. */
#define B_MALLOC 0x00010000 /* malloced b_data */
#define B_CLUSTEROK 0x00020000 /* Pagein op, so swap() can count it. */
@@ -491,6 +491,8 @@
struct ucred *, int, struct buf **);
void bdwrite(struct buf *);
void bawrite(struct buf *);
+void babarrierwrite(struct buf *);
+int bbarrierwrite(struct buf *);
void bdirty(struct buf *);
void bundirty(struct buf *);
void bufstrategy(struct bufobj *, struct buf *);
More information about the Midnightbsd-cvs
mailing list