--- src/sys/bus/cam/cam_periph.c 2005/06/02 20:40:29 1.11 +++ src/sys/bus/cam/cam_periph.c 2006/04/28 00:24:44 1.12 @@ -598,7 +598,7 @@ cam_periph_mapmem(union ccb *ccb, struct mapinfo->bp[i]->b_bufsize = lengths[i]; /* set the flags */ - mapinfo->bp[i]->b_flags = flags[i] | B_PHYS; + mapinfo->bp[i]->b_flags = flags[i]; /* map the buffer into kernel memory */ if (vmapbuf(mapinfo->bp[i]) < 0) { @@ -609,7 +609,6 @@ cam_periph_mapmem(union ccb *ccb, struct (u_long)lengths[i]); for (j = 0; j < i; ++j) { *data_ptrs[j] = mapinfo->bp[j]->b_saveaddr; - mapinfo->bp[j]->b_flags &= ~B_PHYS; relpbuf(mapinfo->bp[j], NULL); } return(EACCES); @@ -668,9 +667,6 @@ cam_periph_unmapmem(union ccb *ccb, stru /* unmap the buffer */ vunmapbuf(mapinfo->bp[i]); - /* clear the flags we set above */ - mapinfo->bp[i]->b_flags &= ~B_PHYS; - /* release the buffer */ relpbuf(mapinfo->bp[i], NULL); }