From 3a5fa7ed9020eaf8ab843a16d26db7393b2ec072 Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Fri, 26 Aug 2011 10:08:29 -0400 Subject: Introduce and use sleeplocks instead of BUSY flags 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) --- sysfile.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sysfile.c') diff --git a/sysfile.c b/sysfile.c index c9d3594..11895df 100644 --- a/sysfile.c +++ b/sysfile.c @@ -5,6 +5,7 @@ #include "mmu.h" #include "proc.h" #include "fs.h" +#include "spinlock.h" #include "file.h" #include "fcntl.h" -- cgit v1.2.3