summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/sys/buf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/buf.h b/sys/sys/buf.h
index dbac38b..efeaec1 100644
--- a/sys/sys/buf.h
+++ b/sys/sys/buf.h
@@ -94,7 +94,9 @@ extern struct buf_ops buf_ops_bio;
*/
struct buf {
/* XXX: b_io must be the first element of struct buf for now /phk */
+ /* XXX: if you change this, fix BIOTOBUF macro below */
struct bio b_io; /* "Builtin" I/O request. */
+#define BIOTOBUF(biop) ((struct buf *)(biop))
#define b_bcount b_io.bio_bcount
#define b_blkno b_io.bio_blkno
#define b_caller1 b_io.bio_caller1
OpenPOWER on IntegriCloud