dm: Use DM_MAPIO_XXX macros instead of 0/1 (resend)
PATCH 1/1 dm: Use DM_MAPIO_XXX macros instead of 0/1 (resend)
.map function of dm-delay returns return value of delay_bio(), hence it's supposed to return either of DM_MAPIO_XXX macros.
(resending this as I forgot to Signed-off-by: on git commit)
Signed-off-by Tomohiro Kusumi <[email protected]>
--- drivers/md/dm-delay.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/md/dm-delay.c +2 -2
@@ -237,7 +237,7 @@ static int delay_bio(struct delay_c *dc, int delay, struct bio *bio)unsigned long expires =0 ;if (!delay || !atomic_read (&dc->may_delay)) -return 1 ; +return DM_MAPIO_REMAPPED ; delayed =dm_per_bio_data (bio,sizeof (struct dm_delay_info ));
@@ -257,7 +257,7 @@ static int delay_bio(struct delay_c *dc, int delay, struct bio *bio)queue_timeout (dc, expires); -return 0 ; +return DM_MAPIO_SUBMITTED ; }static void delay_presuspend (struct dm_target *ti)
Signature · 1 line
1.7.1