rem: || (block->transaction == NULL && block->updated)) {
add: || (block->transaction == NULL && block->is_dirty)) {
context: block_cache_sync(void *_cache){	block_cache *cache = (block_cache *)_cache;	// we will sync all dirty blocks to disk that have a completed	// transaction or no transaction only	BenaphoreLocker locker(cache);	hash_iterator iterator;	hash_open(cache->hash, &iterator);	cached_block *block;	while ((block = (cached_block *)hash_next(cache->hash, &iterator)) != NULL) {		if (block->previous_transaction != NULL			|| (block->transaction == NULL && block->updated)) {			status_t status = write_cached_block(cache, block);			if (status != B_OK)				return status;		}	}	hash_close(cache->hash, &iterator, false);	return B_OK;}