mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
dm cache policy smq: put newly promoted entries at the top of the multiqueue
This stops entries bouncing in and out of the cache quickly. Signed-off-by: Joe Thornber <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
This commit is contained in:
parent
78c45607b9
commit
4d44ec5ab7
1 changed files with 1 additions and 0 deletions
|
|
@ -1452,6 +1452,7 @@ static void __complete_background_work(struct smq_policy *mq,
|
|||
clear_pending(mq, e);
|
||||
if (success) {
|
||||
e->oblock = work->oblock;
|
||||
e->level = NR_CACHE_LEVELS - 1;
|
||||
push(mq, e);
|
||||
// h, q, a
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue