summaryrefslogtreecommitdiff
path: root/buf.h
AgeCommit message (Collapse)AuthorFilesLines
2011-08-29Revert "Introduce and use sleeplocks instead of BUSY flags"Frans Kaashoek1-4/+3
My changes have a race with re-used bufs and the code doesn't seem to get shorter Keep the changes that fixed ip->off race This reverts commit 3a5fa7ed9020eaf8ab843a16d26db7393b2ec072. Conflicts: defs.h file.c file.h
2011-08-26Introduce and use sleeplocks instead of BUSY flagsFrans Kaashoek1-3/+4
Remove I_BUSY, B_BUSY, and intrans defs and usages One spinlock per buf to avoid ugly loop in bget fix race in filewrite (don't update f->off after releasing lock)
2007-08-27Another attempt at the bio.c comment.rsc1-4/+4
Rename B_WRITE to B_DIRTY and then let ide.c maintain the B_VALID and B_DIRTY flags.
2007-08-24simplify ide queuingrtm1-1/+4
nits in comments
2006-09-08some comment changeskaashoek1-2/+2
2006-08-12LRU disk cache replacementrtm1-0/+2
2006-08-12buffer cache, fifo replacementrtm1-0/+1
2006-08-12fix getblk to actually lock the blockrtm1-0/+2
no more cons_put system calls usertests tests two processes writing files
2006-07-21breadrtm1-0/+5
iget mkfs makes a file system image put this in your .bochsrc: ata0-slave: type=disk, mode=flat, path="fs.img", cylinders=1024, heads=1, spt=1