From 7894fcd21732dd2ddfbb9beca52d037a62ed11f4 Mon Sep 17 00:00:00 2001 From: Frans Kaashoek Date: Thu, 25 Aug 2016 09:13:00 -0400 Subject: =?UTF-8?q?Remove=20trailing=20white=20space=20with:=20=20for=20f?= =?UTF-8?q?=20in=20*.{h,c};=20do=20sed=20-i=20.sed=20's/[[:blank:]]*$//'?= =?UTF-8?q?=20$f;=20done=20(Thanks=20to=20Nicol=C3=A1s=20Wolovick)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- memide.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'memide.c') diff --git a/memide.c b/memide.c index 91b7f92..38be9a4 100644 --- a/memide.c +++ b/memide.c @@ -31,7 +31,7 @@ ideintr(void) // no-op } -// Sync buf with disk. +// Sync buf with disk. // If B_DIRTY is set, write buf to disk, clear B_DIRTY, set B_VALID. // Else if B_VALID is not set, read buf from disk, set B_VALID. void @@ -49,7 +49,7 @@ iderw(struct buf *b) panic("iderw: block out of range"); p = memdisk + b->blockno*BSIZE; - + if(b->flags & B_DIRTY){ b->flags &= ~B_DIRTY; memmove(p, b->data, BSIZE); -- cgit v1.2.3