diff options
Diffstat (limited to 'include/linux/device-mapper.h')
| -rw-r--r-- | include/linux/device-mapper.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h index e151d4c9298d..ed419c62dde1 100644 --- a/include/linux/device-mapper.h +++ b/include/linux/device-mapper.h | |||
| @@ -10,6 +10,7 @@ | |||
| 10 | 10 | ||
| 11 | #include <linux/bio.h> | 11 | #include <linux/bio.h> |
| 12 | #include <linux/blkdev.h> | 12 | #include <linux/blkdev.h> |
| 13 | #include <linux/math64.h> | ||
| 13 | #include <linux/ratelimit.h> | 14 | #include <linux/ratelimit.h> |
| 14 | 15 | ||
| 15 | struct dm_dev; | 16 | struct dm_dev; |
| @@ -405,13 +406,14 @@ int dm_noflush_suspending(struct dm_target *ti); | |||
| 405 | union map_info *dm_get_mapinfo(struct bio *bio); | 406 | union map_info *dm_get_mapinfo(struct bio *bio); |
| 406 | union map_info *dm_get_rq_mapinfo(struct request *rq); | 407 | union map_info *dm_get_rq_mapinfo(struct request *rq); |
| 407 | 408 | ||
| 409 | struct queue_limits *dm_get_queue_limits(struct mapped_device *md); | ||
| 410 | |||
| 408 | /* | 411 | /* |
| 409 | * Geometry functions. | 412 | * Geometry functions. |
| 410 | */ | 413 | */ |
| 411 | int dm_get_geometry(struct mapped_device *md, struct hd_geometry *geo); | 414 | int dm_get_geometry(struct mapped_device *md, struct hd_geometry *geo); |
| 412 | int dm_set_geometry(struct mapped_device *md, struct hd_geometry *geo); | 415 | int dm_set_geometry(struct mapped_device *md, struct hd_geometry *geo); |
| 413 | 416 | ||
| 414 | |||
| 415 | /*----------------------------------------------------------------- | 417 | /*----------------------------------------------------------------- |
| 416 | * Functions for manipulating device-mapper tables. | 418 | * Functions for manipulating device-mapper tables. |
| 417 | *---------------------------------------------------------------*/ | 419 | *---------------------------------------------------------------*/ |
| @@ -550,6 +552,14 @@ extern struct ratelimit_state dm_ratelimit_state; | |||
| 550 | #define DM_MAPIO_REMAPPED 1 | 552 | #define DM_MAPIO_REMAPPED 1 |
| 551 | #define DM_MAPIO_REQUEUE DM_ENDIO_REQUEUE | 553 | #define DM_MAPIO_REQUEUE DM_ENDIO_REQUEUE |
| 552 | 554 | ||
| 555 | #define dm_sector_div64(x, y)( \ | ||
| 556 | { \ | ||
| 557 | u64 _res; \ | ||
| 558 | (x) = div64_u64_rem(x, y, &_res); \ | ||
| 559 | _res; \ | ||
| 560 | } \ | ||
| 561 | ) | ||
| 562 | |||
| 553 | /* | 563 | /* |
| 554 | * Ceiling(n / sz) | 564 | * Ceiling(n / sz) |
| 555 | */ | 565 | */ |
