Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347948
b: refs/heads/master
c: 7c27213
h: refs/heads/master
v: v3
  • Loading branch information
Mikulas Patocka authored and Alasdair G Kergon committed Dec 21, 2012
1 parent 48d9bae commit 6db0e46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 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: 018debea8de9b8f17a9637e07c98c61517eb2a6b
refs/heads/master: 7c27213b20f060111d5b6fa14bcdbab6588ae351
8 changes: 3 additions & 5 deletions trunk/drivers/md/dm-raid1.c
Original file line number Diff line number Diff line change
Expand Up @@ -1195,11 +1195,9 @@ static int mirror_map(struct dm_target *ti, struct bio *bio,
return -EIO;

read_record = mempool_alloc(ms->read_record_pool, GFP_NOIO);
if (likely(read_record)) {
dm_bio_record(&read_record->details, bio);
map_context->ptr = read_record;
read_record->m = m;
}
dm_bio_record(&read_record->details, bio);
map_context->ptr = read_record;
read_record->m = m;

map_bio(m, bio);

Expand Down

0 comments on commit 6db0e46

Please sign in to comment.