diff options
author | Joe Thornber <ejt@redhat.com> | 2015-05-15 17:20:09 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2015-05-29 21:19:04 +0300 |
commit | 20f6814b94fff4a98b123f1c2b691e936be27aaf (patch) | |
tree | 1845743b06f1a2e999a37c5ae98ba6649753a95a /drivers/md/dm-cache-policy-cleaner.c | |
parent | 066dbaa386c751164c39ab025e5e8803b4a4d691 (diff) | |
download | linux-20f6814b94fff4a98b123f1c2b691e936be27aaf.tar.xz |
dm cache: pass a new 'critical' flag to the policies when requesting writeback work
We only allow non critical writeback if the origin is idle. It is up
to the policy to decide what writeback work is critical.
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-cache-policy-cleaner.c')
-rw-r--r-- | drivers/md/dm-cache-policy-cleaner.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/dm-cache-policy-cleaner.c b/drivers/md/dm-cache-policy-cleaner.c index 004e463c9423..240c9f0e85e7 100644 --- a/drivers/md/dm-cache-policy-cleaner.c +++ b/drivers/md/dm-cache-policy-cleaner.c @@ -359,7 +359,8 @@ static struct wb_cache_entry *get_next_dirty_entry(struct policy *p) static int wb_writeback_work(struct dm_cache_policy *pe, dm_oblock_t *oblock, - dm_cblock_t *cblock) + dm_cblock_t *cblock, + bool critical_only) { int r = -ENOENT; struct policy *p = to_policy(pe); |