[PATCH] dm: map and endio symbolic return codes
Update existing targets to use the new symbols for return values from target map and end_io functions. There is no effect on behaviour. Test results: Done build test without errors. Signed-off-by: Kiyoshi Ueda <k-ueda@ct.jp.nec.com> Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com> Cc: dm-devel@redhat.com Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
45cbcd7983
commit
d2a7ad29a8
@ -186,7 +186,7 @@ static int stripe_map(struct dm_target *ti, struct bio *bio,
|
||||
bio->bi_bdev = sc->stripe[stripe].dev->bdev;
|
||||
bio->bi_sector = sc->stripe[stripe].physical_start +
|
||||
(chunk << sc->chunk_shift) + (offset & sc->chunk_mask);
|
||||
return 1;
|
||||
return DM_MAPIO_REMAPPED;
|
||||
}
|
||||
|
||||
static int stripe_status(struct dm_target *ti,
|
||||
|
Reference in New Issue
Block a user