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

Update flashcache_reclaim.c #136

Merged
merged 1 commit into from Sep 6, 2013
Merged

Conversation

hshopeful
Copy link
Contributor

The function of flashcache_reclaim_demote_block() is to swap this hot block with the MRU block in the warm queue.

And the MRU block in the warm queue is related to warmlist_lru_tail,so

the code:
warm_block = cache_set->warmlist_lru_head;

should be:
warm_block = cache_set->warmlist_lru_tail;

The function of flashcache_reclaim_demote_block() is to swap this hot block with the MRU block in the warm queue.

And the MRU block in the warm queue is related to warmlist_lru_tail,so

the code:
warm_block = cache_set->warmlist_lru_head; 

should be:
warm_block = cache_set->warmlist_lru_tail;
mohans added a commit that referenced this pull request Sep 6, 2013
Update flashcache_reclaim.c
@mohans mohans merged commit f75a068 into facebookarchive:master Sep 6, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants