Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 59285
b: refs/heads/master
c: 943317e
h: refs/heads/master
i:
  59283: 189fb1d
v: v3
  • Loading branch information
Jonathan Brassow authored and Linus Torvalds committed Jul 12, 2007
1 parent 2dc75ed commit d045e4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 0764147b111b8ca886e4f2e9c9e019106b09b657
refs/heads/master: 943317efdbc295e8a28df3f5cbd549d066ee8b4a
12 changes: 6 additions & 6 deletions trunk/drivers/md/dm-raid1.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,10 +378,8 @@ static void rh_update_states(struct region_hash *rh)
list_splice(&rh->clean_regions, &clean);
INIT_LIST_HEAD(&rh->clean_regions);

list_for_each_entry (reg, &clean, list) {
rh->log->type->clear_region(rh->log, reg->key);
list_for_each_entry(reg, &clean, list)
list_del(&reg->hash_list);
}
}

if (!list_empty(&rh->recovered_regions)) {
Expand All @@ -405,10 +403,12 @@ static void rh_update_states(struct region_hash *rh)
mempool_free(reg, rh->region_pool);
}

rh->log->type->flush(rh->log);

list_for_each_entry_safe (reg, next, &clean, list)
list_for_each_entry_safe(reg, next, &clean, list) {
rh->log->type->clear_region(rh->log, reg->key);
mempool_free(reg, rh->region_pool);
}

rh->log->type->flush(rh->log);
}

static void rh_inc(struct region_hash *rh, region_t region)
Expand Down

0 comments on commit d045e4d

Please sign in to comment.