Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147991564
D5590.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
550 B
Referenced Files
None
Subscribers
None
D5590.diff
View Options
Index: head/sys/dev/amr/amr.c
===================================================================
--- head/sys/dev/amr/amr.c
+++ head/sys/dev/amr/amr.c
@@ -1319,7 +1319,7 @@
blkcount = (bio->bio_bcount + AMR_BLKSIZE - 1) / AMR_BLKSIZE;
ac->ac_mailbox.mb_command = cmd;
- if (bio->bio_cmd & (BIO_READ|BIO_WRITE)) {
+ if (bio->bio_cmd == BIO_READ || bio->bio_cmd == BIO_WRITE) {
ac->ac_mailbox.mb_blkcount = blkcount;
ac->ac_mailbox.mb_lba = bio->bio_pblkno;
if ((bio->bio_pblkno + blkcount) > sc->amr_drive[driveno].al_size) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 16, 1:56 AM (7 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29747262
Default Alt Text
D5590.diff (550 B)
Attached To
Mode
D5590: Don't assume that bio_cmd is a bitfield.
Attached
Detach File
Event Timeline
Log In to Comment