Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262201
b: refs/heads/master
c: 30e4171
h: refs/heads/master
i:
  262199: 54a4692
v: v3
  • Loading branch information
Mike Snitzer authored and Alasdair G Kergon committed Aug 2, 2011
1 parent 4821f51 commit 52d2f47
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: 498f0103ea13123e007660def9072a0b7dd1c599
refs/heads/master: 30e4171bfe3d1c49689803338005cc0071dddaff
3 changes: 2 additions & 1 deletion trunk/drivers/md/dm-flakey.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ static int flakey_ctr(struct dm_target *ti, unsigned int argc, char **argv)
}

ti->num_flush_requests = 1;
ti->num_discard_requests = 1;
ti->private = fc;
return 0;

Expand All @@ -99,7 +100,7 @@ static sector_t flakey_map_sector(struct dm_target *ti, sector_t bi_sector)
{
struct flakey_c *fc = ti->private;

return fc->start + (bi_sector - ti->begin);
return fc->start + dm_target_offset(ti, bi_sector);
}

static void flakey_map_bio(struct dm_target *ti, struct bio *bio)
Expand Down

0 comments on commit 52d2f47

Please sign in to comment.