Skip to content

Instantly share code, notes, and snippets.

@jeamland
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeamland/eff6ae0888e5d948c629 to your computer and use it in GitHub Desktop.
Save jeamland/eff6ae0888e5d948c629 to your computer and use it in GitHub Desktop.
Index: sys/kern/vfs_bio.c
===================================================================
--- sys/kern/vfs_bio.c (revision 280152)
+++ sys/kern/vfs_bio.c (working copy)
@@ -3611,6 +3611,7 @@
bp->bio_flags |= BIO_UNMAPPED;
start = trunc_page((vm_offset_t)bp->bio_data);
end = round_page((vm_offset_t)bp->bio_data + bp->bio_length);
+ bp->bio_data = unmapped_buf;
pmap_qremove(start, OFF_TO_IDX(end - start));
vmem_free(transient_arena, start, end - start);
atomic_add_int(&inflight_transient_maps, -1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment