Fixed bug in Inode_ClearCache
authorJohn Hodge <[email protected]>
Sun, 27 Dec 2009 03:43:07 +0000 (11:43 +0800)
committerJohn Hodge <[email protected]>
Sun, 27 Dec 2009 03:43:07 +0000 (11:43 +0800)
Kernel/vfs/nodecache.c

index a85e518..c503e9c 100644 (file)
@@ -167,7 +167,7 @@ void Inode_ClearCache(int Handle)
                cache && cache->Handle < Handle;
                prev = cache, cache = cache->Next
                );
-       if(!cache)      return;
+       if(!cache || cache->Handle != Handle)   return;
        
        // Search Cache
        ent = cache->FirstNode;

UCC git Repository :: git.ucc.asn.au