Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154811797
D26595.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
852 B
Referenced Files
None
Subscribers
None
D26595.diff
View Options
Index: head/sys/kern/vfs_aio.c
===================================================================
--- head/sys/kern/vfs_aio.c
+++ head/sys/kern/vfs_aio.c
@@ -1278,7 +1278,6 @@
bp->bio_length = cb->aio_nbytes;
bp->bio_bcount = cb->aio_nbytes;
bp->bio_done = aio_biowakeup;
- bp->bio_data = (void *)(uintptr_t)cb->aio_buf;
bp->bio_offset = cb->aio_offset;
bp->bio_cmd = cb->aio_lio_opcode == LIO_WRITE ? BIO_WRITE : BIO_READ;
bp->bio_dev = dev;
@@ -1288,7 +1287,7 @@
if (cb->aio_lio_opcode == LIO_READ)
prot |= VM_PROT_WRITE; /* Less backwards than it looks */
job->npages = vm_fault_quick_hold_pages(&curproc->p_vmspace->vm_map,
- (vm_offset_t)bp->bio_data, bp->bio_length, prot, job->pages,
+ (vm_offset_t)cb->aio_buf, bp->bio_length, prot, job->pages,
nitems(job->pages));
if (job->npages < 0) {
error = EFAULT;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 30, 12:22 PM (19 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32254343
Default Alt Text
D26595.diff (852 B)
Attached To
Mode
D26595: Avoid a dubious assignment to bio_data in aio_qbio().
Attached
Detach File
Event Timeline
Log In to Comment