Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43845
b: refs/heads/master
c: 88b20a1
h: refs/heads/master
i:
  43843: c01f3dd
v: v3
  • Loading branch information
Jonathan E Brassow authored and Linus Torvalds committed Dec 8, 2006
1 parent 7dba876 commit 91c7aba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f3ee6b2f621fec7bc8bfe43fb465e938c37c8d20
refs/heads/master: 88b20a1a71d98d6e0b8373fa68fb784340b3ee51
9 changes: 9 additions & 0 deletions trunk/drivers/md/dm-log.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ static int disk_resume(struct dirty_log *log)
/* copy clean across to sync */
memcpy(lc->sync_bits, lc->clean_bits, size);
lc->sync_count = count_bits32(lc->clean_bits, lc->bitset_uint32_count);
lc->sync_search = 0;

/* set the correct number of regions in the header */
lc->header.nr_regions = lc->region_count;
Expand All @@ -480,6 +481,13 @@ static uint32_t core_get_region_size(struct dirty_log *log)
return lc->region_size;
}

static int core_resume(struct dirty_log *log)
{
struct log_c *lc = (struct log_c *) log->context;
lc->sync_search = 0;
return 0;
}

static int core_is_clean(struct dirty_log *log, region_t region)
{
struct log_c *lc = (struct log_c *) log->context;
Expand Down Expand Up @@ -621,6 +629,7 @@ static struct dirty_log_type _core_type = {
.module = THIS_MODULE,
.ctr = core_ctr,
.dtr = core_dtr,
.resume = core_resume,
.get_region_size = core_get_region_size,
.is_clean = core_is_clean,
.in_sync = core_in_sync,
Expand Down

0 comments on commit 91c7aba

Please sign in to comment.