Message ID | 1303897964.4679.56.camel@ubuntu (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
diff --git a/drivers/md/dm-thin-prov.c b/drivers/md/dm-thin-prov.c index 6ac802e..a168ee6 100644 --- a/drivers/md/dm-thin-prov.c +++ b/drivers/md/dm-thin-prov.c @@ -641,7 +641,15 @@ thinp_io_hints(struct dm_target *ti, struct queue_limits *limits) struct thinp_c *tc = ti->private; blk_limits_io_min(limits, 0); - blk_limits_io_opt(limits, data_dev_block_size(tc)); + blk_limits_io_opt(limits, tc->block_size << tc->block_shift); +} + +static int thinp_iterate_devices(struct dm_target *ti, + iterate_devices_callout_fn fn, + void *data) +{ + struct thinp_c *tc = ti->private; + return fn(ti, tc->data_dev, 0, tc->data_size << tc->block_shift, data); }