diff options
Diffstat (limited to 'drivers/md/dm-stripe.c')
-rw-r--r-- | drivers/md/dm-stripe.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/md/dm-stripe.c b/drivers/md/dm-stripe.c index 49888bc2c909..11621a0af887 100644 --- a/drivers/md/dm-stripe.c +++ b/drivers/md/dm-stripe.c | |||
@@ -375,7 +375,8 @@ static void stripe_status(struct dm_target *ti, status_type_t type, | |||
375 | } | 375 | } |
376 | } | 376 | } |
377 | 377 | ||
378 | static int stripe_end_io(struct dm_target *ti, struct bio *bio, int *error) | 378 | static int stripe_end_io(struct dm_target *ti, struct bio *bio, |
379 | blk_status_t *error) | ||
379 | { | 380 | { |
380 | unsigned i; | 381 | unsigned i; |
381 | char major_minor[16]; | 382 | char major_minor[16]; |
@@ -387,7 +388,7 @@ static int stripe_end_io(struct dm_target *ti, struct bio *bio, int *error) | |||
387 | if (bio->bi_opf & REQ_RAHEAD) | 388 | if (bio->bi_opf & REQ_RAHEAD) |
388 | return DM_ENDIO_DONE; | 389 | return DM_ENDIO_DONE; |
389 | 390 | ||
390 | if (*error == -EOPNOTSUPP) | 391 | if (*error == BLK_STS_NOTSUPP) |
391 | return DM_ENDIO_DONE; | 392 | return DM_ENDIO_DONE; |
392 | 393 | ||
393 | memset(major_minor, 0, sizeof(major_minor)); | 394 | memset(major_minor, 0, sizeof(major_minor)); |