From: Ben Gras Date: Wed, 14 Dec 2005 12:08:49 +0000 (+0000) Subject: Priority explicitization. X-Git-Tag: v3.1.2a~472 X-Git-Url: http://zhaoyanbai.com/repos/%22https:/www.google.com/jsapi/static/mdoc.3.html?a=commitdiff_plain;h=eb1919722d317332b5f9d25e15c515100c229db9;p=minix.git Priority explicitization. --- diff --git a/servers/fs/cache.c b/servers/fs/cache.c index df2addf8e..3b5bcf36a 100644 --- a/servers/fs/cache.c +++ b/servers/fs/cache.c @@ -152,7 +152,7 @@ int block_type; /* INODE_BLOCK, DIRECTORY_BLOCK, or whatever */ * it on the front of the LRU chain where it will be the first one to be * taken when a free buffer is needed later. */ - if (bp->b_dev == DEV_RAM || block_type & ONE_SHOT) { + if (bp->b_dev == DEV_RAM || (block_type & ONE_SHOT)) { /* Block probably won't be needed quickly. Put it on front of chain. * It will be the next block to be evicted from the cache. */