]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/md/dm-linear.c
[PATCH] dm: map and endio symbolic return codes
[linux-2.6-omap-h63xx.git] / drivers / md / dm-linear.c
index 4a1cee48e65239aece4c96c8baee98d484c193b4..17753d80ad228022b2575e46ee28f867cfd93d6f 100644 (file)
@@ -77,7 +77,7 @@ static int linear_map(struct dm_target *ti, struct bio *bio,
        bio->bi_bdev = lc->dev->bdev;
        bio->bi_sector = lc->start + (bio->bi_sector - ti->begin);
 
-       return 1;
+       return DM_MAPIO_REMAPPED;
 }
 
 static int linear_status(struct dm_target *ti, status_type_t type,