]> xenbits.xensource.com Git - people/royger/freebsd.git/commitdiff
bio: make _bio_cflags match bio_cflags
authorWarner Losh <imp@FreeBSD.org>
Wed, 23 Feb 2022 21:28:16 +0000 (14:28 -0700)
committerWarner Losh <imp@FreeBSD.org>
Wed, 9 Mar 2022 20:52:23 +0000 (13:52 -0700)
While none of the in-tree geoms that modify the bio_cflags use the top
half of the word, were they to do this in the future, we'd hit false
positives for DIAGNOSTIC kernels. Make both uint16_t.

MFC After: 1 week
Sponsored by: Netflix

(cherry picked from commit 077ab5bd43aaeb955d84c501ddddc7533f0a06b9)

sys/sys/bio.h

index 88eeea427da3758fa7fce6153163a2c077bb7811..f70083b1d56fd06942858a385bb10a892b0f2193 100644 (file)
@@ -125,7 +125,7 @@ struct bio {
 #ifdef DIAGNOSTIC
        void    *_bio_caller1;
        void    *_bio_caller2;
-       uint8_t _bio_cflags;
+       uint16_t _bio_cflags;
 #endif
 #if defined(BUF_TRACKING) || defined(FULL_BUF_TRACKING)
        struct buf *bio_track_bp;       /* Parent buf for tracking */