Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 375253
b: refs/heads/master
c: f8350da
h: refs/heads/master
i:
  375251: 6841ddf
v: v3
  • Loading branch information
Joe Thornber authored and Alasdair G Kergon committed May 10, 2013
1 parent af1859a commit 444a042
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 042bcef889f4319d366c67fb694f1f2498fcb68e
refs/heads/master: f8350daf7af05e3b8cf98e9550de3f623af03fe7
3 changes: 2 additions & 1 deletion trunk/drivers/md/dm-cache-target.c
Original file line number Diff line number Diff line change
Expand Up @@ -1445,6 +1445,7 @@ static void do_worker(struct work_struct *ws)
static void do_waker(struct work_struct *ws)
{
struct cache *cache = container_of(to_delayed_work(ws), struct cache, waker);
policy_tick(cache->policy);
wake_worker(cache);
queue_delayed_work(cache->wq, &cache->waker, COMMIT_PERIOD);
}
Expand Down Expand Up @@ -1886,7 +1887,7 @@ static sector_t calculate_discard_block_size(sector_t cache_block_size,
return discard_block_size;
}

#define DEFAULT_MIGRATION_THRESHOLD (2048 * 100)
#define DEFAULT_MIGRATION_THRESHOLD 2048

static int cache_create(struct cache_args *ca, struct cache **result)
{
Expand Down

0 comments on commit 444a042

Please sign in to comment.