Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Fix up some comments and whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohan Srinivasan committed Aug 17, 2010
1 parent 9f9914a commit 8f1f45b
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/flashcache_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ static int dm_io_async_bvec(unsigned int num_regions,
}
#endif


void
flashcache_io_callback(unsigned long error, void *context)
{
Expand Down Expand Up @@ -299,7 +298,6 @@ flashcache_do_pending_error(struct kcached_job *job)
flashcache_free_cache_job(job);
if (atomic_dec_and_test(&dmc->nr_jobs))
wake_up(&dmc->destroyq);

}

static void
Expand Down Expand Up @@ -504,16 +502,7 @@ find_invalid_dbn(struct cache_c *dmc, int start_index)
return -1;
}

/*
* Search for a slot that we can reclaim.
* The strategy is ~FIFO right now. sweep thru the set looking for
* a block to recycle.
* But we can come up with at least 2 other (configurable at cache create
* time alternatives) for future.
* LRU within a set : Maintain either a timestamp per block and do
* approximated LRU within each set. Or chain the LRU blocks within a
* set.
*/
/* Search for a slot that we can reclaim */
static void
find_reclaim_dbn(struct cache_c *dmc, int start_index, int *index)
{
Expand Down

0 comments on commit 8f1f45b

Please sign in to comment.