Priority explicitization.

This commit is contained in:
Ben Gras 2005-12-14 12:08:49 +00:00
parent f6e5052597
commit eb1919722d

View File

@ -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 * 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. * 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. /* 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. * It will be the next block to be evicted from the cache.
*/ */