md.c (112944) | md.c (112946) |
---|---|
1/* 2 * ---------------------------------------------------------------------------- 3 * "THE BEER-WARE LICENSE" (Revision 42): 4 * <phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you 5 * can do whatever you want with this stuff. If we meet some day, and you think 6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp 7 * ---------------------------------------------------------------------------- 8 * | 1/* 2 * ---------------------------------------------------------------------------- 3 * "THE BEER-WARE LICENSE" (Revision 42): 4 * <phk@FreeBSD.ORG> wrote this file. As long as you retain this notice you 5 * can do whatever you want with this stuff. If we meet some day, and you think 6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp 7 * ---------------------------------------------------------------------------- 8 * |
9 * $FreeBSD: head/sys/dev/md/md.c 112944 2003-04-01 13:33:28Z phk $ | 9 * $FreeBSD: head/sys/dev/md/md.c 112946 2003-04-01 15:06:26Z phk $ |
10 * 11 */ 12 13/* 14 * The following functions are based in the vn(4) driver: mdstart_swap(), 15 * mdstart_vnode(), mdcreate_swap(), mdcreate_vnode() and mddestroy(), 16 * and as such under the following copyright: 17 * --- 353 unchanged lines hidden (view full) --- 371 case BIO_SETATTR: 372 g_io_deliver(bp, EOPNOTSUPP); 373 return; 374 } 375 bp->bio_blkno = bp->bio_offset >> DEV_BSHIFT; 376 bp->bio_pblkno = bp->bio_offset / sc->secsize; 377 bp->bio_bcount = bp->bio_length; 378 mtx_lock(&sc->queue_mtx); | 10 * 11 */ 12 13/* 14 * The following functions are based in the vn(4) driver: mdstart_swap(), 15 * mdstart_vnode(), mdcreate_swap(), mdcreate_vnode() and mddestroy(), 16 * and as such under the following copyright: 17 * --- 353 unchanged lines hidden (view full) --- 371 case BIO_SETATTR: 372 g_io_deliver(bp, EOPNOTSUPP); 373 return; 374 } 375 bp->bio_blkno = bp->bio_offset >> DEV_BSHIFT; 376 bp->bio_pblkno = bp->bio_offset / sc->secsize; 377 bp->bio_bcount = bp->bio_length; 378 mtx_lock(&sc->queue_mtx); |
379 bioqdisksort(&sc->bio_queue, bp); | 379 bioq_disksort(&sc->bio_queue, bp); |
380 mtx_unlock(&sc->queue_mtx); 381 382 wakeup(sc); 383} 384 385DECLARE_GEOM_CLASS(g_md_class, g_md); 386 387 --- 804 unchanged lines hidden --- | 380 mtx_unlock(&sc->queue_mtx); 381 382 wakeup(sc); 383} 384 385DECLARE_GEOM_CLASS(g_md_class, g_md); 386 387 --- 804 unchanged lines hidden --- |