From 9a8fa125c1254266563fb16e3c94e4c677906121 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Thu, 14 Apr 2016 05:10:41 +0000 Subject: Bump bio_cmd and bio_*flags from 8 bits to 16. Differential Revision: https://reviews.freebsd.org/D5784 --- sys/sys/bio.h | 8 ++++---- sys/sys/buf.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'sys/sys') diff --git a/sys/sys/bio.h b/sys/sys/bio.h index 8b3a5fcb6a37..37fefbfc37bd 100644 --- a/sys/sys/bio.h +++ b/sys/sys/bio.h @@ -77,10 +77,10 @@ typedef void bio_task_t(void *); * The bio structure describes an I/O operation in the kernel. */ struct bio { - uint8_t bio_cmd; /* I/O operation. */ - uint8_t bio_flags; /* General flags. */ - uint8_t bio_cflags; /* Private use by the consumer. */ - uint8_t bio_pflags; /* Private use by the provider. */ + uint16_t bio_cmd; /* I/O operation. */ + uint16_t bio_flags; /* General flags. */ + uint16_t bio_cflags; /* Private use by the consumer. */ + uint16_t bio_pflags; /* Private use by the provider. */ struct cdev *bio_dev; /* Device to do I/O on. */ struct disk *bio_disk; /* Valid below geom_disk.c only */ off_t bio_offset; /* Offset into file. */ diff --git a/sys/sys/buf.h b/sys/sys/buf.h index 012493ca84dc..4255afdf6bcf 100644 --- a/sys/sys/buf.h +++ b/sys/sys/buf.h @@ -98,8 +98,8 @@ struct buf { void *b_caller1; caddr_t b_data; int b_error; - uint8_t b_iocmd; /* BIO_* bio_cmd from bio.h */ - uint8_t b_ioflags; /* BIO_* bio_flags from bio.h */ + uint16_t b_iocmd; /* BIO_* bio_cmd from bio.h */ + uint16_t b_ioflags; /* BIO_* bio_flags from bio.h */ off_t b_iooffset; long b_resid; void (*b_iodone)(struct buf *); -- cgit v1.2.3