Forget to remove debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15563 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
37bd67edb8
commit
005108a262
8
src/system/kernel/cache/block_cache.cpp
vendored
8
src/system/kernel/cache/block_cache.cpp
vendored
@ -316,7 +316,7 @@ block_cache::NewBlock(off_t blockNumber)
|
||||
void
|
||||
block_cache::RemoveUnusedBlocks(int32 maxAccessed, int32 count)
|
||||
{
|
||||
dprintf("block_cache: remove up to %ld unused blocks\n", count);
|
||||
TRACE(("block_cache: remove up to %ld unused blocks\n", count));
|
||||
|
||||
cached_block *next = NULL;
|
||||
for (cached_block *block = unused_blocks.First(); block != NULL; block = next) {
|
||||
@ -327,8 +327,8 @@ block_cache::RemoveUnusedBlocks(int32 maxAccessed, int32 count)
|
||||
if (maxAccessed < block->accessed)
|
||||
continue;
|
||||
|
||||
dprintf(" remove block %Ld, accessed %ld times\n",
|
||||
block->block_number, block->accessed);
|
||||
TRACE((" remove block %Ld, accessed %ld times\n",
|
||||
block->block_number, block->accessed));
|
||||
|
||||
// this can only happen if no transactions are used
|
||||
if (block->is_dirty)
|
||||
@ -352,7 +352,7 @@ block_cache::LowMemoryHandler(void *data, int32 level)
|
||||
block_cache *cache = (block_cache *)data;
|
||||
BenaphoreLocker locker(&cache->lock);
|
||||
|
||||
dprintf("block_cache: low memory handler called with level %ld\n", level);
|
||||
TRACE(("block_cache: low memory handler called with level %ld\n", level));
|
||||
|
||||
// free some blocks according to the low memory state
|
||||
// (if there is enough memory left, we don't free any)
|
||||
|
Loading…
Reference in New Issue
Block a user