projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8cd1eb
)
dm cache policy smq: be more aggressive about triggering a writeback
author
Joe Thornber
<ejt@redhat.com>
Thu, 11 May 2017 09:09:38 +0000
(
05:09
-0400)
committer
Mike Snitzer
<snitzer@redhat.com>
Mon, 15 May 2017 01:54:32 +0000
(21:54 -0400)
If there are no clean entries to demote we really want to writeback
immediately.
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-cache-policy-smq.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/dm-cache-policy-smq.c
b/drivers/md/dm-cache-policy-smq.c
index a177559f2049fc24afb2fcf2a92e2ab10d7ebec4..5aa8f43856c515720d0d3cc5a6b9aa2157186aba 100644
(file)
--- a/
drivers/md/dm-cache-policy-smq.c
+++ b/
drivers/md/dm-cache-policy-smq.c
@@
-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,
fals
e))
+ if (!clean_target_met(mq,
tru
e))
queue_writeback(mq);
return;
}