mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
dm cache policy smq: be more aggressive about triggering a writeback
If there are no clean entries to demote we really want to writeback immediately. Signed-off-by: Joe Thornber <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
This commit is contained in:
parent
a8cd1eba61
commit
78c45607b9
1 changed files with 1 additions and 1 deletions
|
|
@ -1192,7 +1192,7 @@ static void queue_demotion(struct smq_policy *mq)
|
|||
|
||||
e = q_peek(&mq->clean, mq->clean.nr_levels / 2, true);
|
||||
if (!e) {
|
||||
if (!clean_target_met(mq, false))
|
||||
if (!clean_target_met(mq, true))
|
||||
queue_writeback(mq);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue