bcache 37 bio.c } bcache; bcache 44 bio.c initlock(&bcache.lock, "bcache"); bcache 48 bio.c bcache.head.prev = &bcache.head; bcache 49 bio.c bcache.head.next = &bcache.head; bcache 50 bio.c for(b = bcache.buf; b < bcache.buf+NBUF; b++){ bcache 51 bio.c b->next = bcache.head.next; bcache 52 bio.c b->prev = &bcache.head; bcache 54 bio.c bcache.head.next->prev = b; bcache 55 bio.c bcache.head.next = b; bcache 67 bio.c acquire(&bcache.lock); bcache 71 bio.c for(b = bcache.head.next; b != &bcache.head; b = b->next){ bcache 75 bio.c release(&bcache.lock); bcache 78 bio.c sleep(b, &bcache.lock); bcache 86 bio.c for(b = bcache.head.prev; b != &bcache.head; b = b->prev){ bcache 91 bio.c release(&bcache.lock); bcache 129 bio.c acquire(&bcache.lock); bcache 133 bio.c b->next = bcache.head.next; bcache 134 bio.c b->prev = &bcache.head; bcache 135 bio.c bcache.head.next->prev = b; bcache 136 bio.c bcache.head.next = b; bcache 141 bio.c release(&bcache.lock);