kill physstrat
This commit is contained in:
parent
23c2fcd278
commit
7c3008b8d7
|
@ -740,35 +740,6 @@ microtime(tvp)
|
|||
}
|
||||
#endif /* HZ */
|
||||
|
||||
physstrat(bp, strat, prio)
|
||||
struct buf *bp;
|
||||
int (*strat)(), prio;
|
||||
{
|
||||
register int s;
|
||||
caddr_t baddr;
|
||||
|
||||
/*
|
||||
* vmapbuf clobbers b_addr so we must remember it so that it
|
||||
* can be restored after vunmapbuf. This is truely rude, we
|
||||
* should really be storing this in a field in the buf struct
|
||||
* but none are available and I didn't want to add one at
|
||||
* this time. Note that b_addr for dirty page pushes is
|
||||
* restored in vunmapbuf. (ugh!)
|
||||
*/
|
||||
baddr = bp->b_un.b_addr;
|
||||
vmapbuf(bp);
|
||||
(*strat)(bp);
|
||||
/* pageout daemon doesn't wait for pushed pages */
|
||||
if (bp->b_flags & B_DIRTY)
|
||||
return;
|
||||
s = splbio();
|
||||
while ((bp->b_flags & B_DONE) == 0)
|
||||
sleep((caddr_t)bp, prio);
|
||||
splx(s);
|
||||
vunmapbuf(bp);
|
||||
bp->b_un.b_addr = baddr;
|
||||
}
|
||||
|
||||
initcpu()
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue