dm: change ->end_io calling convention
Turn the error paramter into a pointer so that target drivers can change the value, and make sure only DM_ENDIO_* values are returned from the methods. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:

committed by
Jens Axboe

parent
846785e6a5
commit
1be5690984
@@ -1851,14 +1851,14 @@ out_unlock:
|
||||
return r;
|
||||
}
|
||||
|
||||
static int snapshot_end_io(struct dm_target *ti, struct bio *bio, int error)
|
||||
static int snapshot_end_io(struct dm_target *ti, struct bio *bio, int *error)
|
||||
{
|
||||
struct dm_snapshot *s = ti->private;
|
||||
|
||||
if (is_bio_tracked(bio))
|
||||
stop_tracking_chunk(s, bio);
|
||||
|
||||
return 0;
|
||||
return DM_ENDIO_DONE;
|
||||
}
|
||||
|
||||
static void snapshot_merge_presuspend(struct dm_target *ti)
|
||||
|
Reference in New Issue
Block a user