diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2014-03-14 18:41:24 -0400 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2014-06-03 13:44:06 -0400 |
commit | 1dd40c3ecd9b8a4ab91dbf2e6ce10b82a3b5ae63 (patch) | |
tree | a1473eb0643c544ac9efa13911d6119a8078ed60 /include/linux/device-mapper.h | |
parent | e0d6609a5fe34463ae2fd48d846931f70de8b37b (diff) |
dm: introduce dm_accept_partial_bio
The function dm_accept_partial_bio allows the target to specify how many
sectors of the current bio it will process. If the target only wants to
accept part of the bio, it calls dm_accept_partial_bio and the DM core
sends the rest of the data in next bio.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'include/linux/device-mapper.h')
-rw-r--r-- | include/linux/device-mapper.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h index 63da56ed9796..0adca299f238 100644 --- a/include/linux/device-mapper.h +++ b/include/linux/device-mapper.h | |||
@@ -291,6 +291,7 @@ struct dm_target_io { | |||
291 | struct dm_io *io; | 291 | struct dm_io *io; |
292 | struct dm_target *ti; | 292 | struct dm_target *ti; |
293 | unsigned target_bio_nr; | 293 | unsigned target_bio_nr; |
294 | unsigned *len_ptr; | ||
294 | struct bio clone; | 295 | struct bio clone; |
295 | }; | 296 | }; |
296 | 297 | ||
@@ -401,6 +402,7 @@ int dm_copy_name_and_uuid(struct mapped_device *md, char *name, char *uuid); | |||
401 | struct gendisk *dm_disk(struct mapped_device *md); | 402 | struct gendisk *dm_disk(struct mapped_device *md); |
402 | int dm_suspended(struct dm_target *ti); | 403 | int dm_suspended(struct dm_target *ti); |
403 | int dm_noflush_suspending(struct dm_target *ti); | 404 | int dm_noflush_suspending(struct dm_target *ti); |
405 | void dm_accept_partial_bio(struct bio *bio, unsigned n_sectors); | ||
404 | union map_info *dm_get_rq_mapinfo(struct request *rq); | 406 | union map_info *dm_get_rq_mapinfo(struct request *rq); |
405 | 407 | ||
406 | struct queue_limits *dm_get_queue_limits(struct mapped_device *md); | 408 | struct queue_limits *dm_get_queue_limits(struct mapped_device *md); |