dm-buffered: use errno_to_blk_status Use errno_to_blk_status when setting bi_status. Signed-off-by: Mikulas Patocka --- drivers/md/dm-buffered-target.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: linux-2.6/drivers/md/dm-buffered-target.c =================================================================== --- linux-2.6.orig/drivers/md/dm-buffered-target.c +++ linux-2.6/drivers/md/dm-buffered-target.c @@ -118,7 +118,7 @@ static void _io(struct buffered_c *bc, s if (IS_ERR(buffer)) { /* Memorize first error in bio status. */ if (!bio->bi_status) - bio->bi_status = PTR_ERR(buffer); + bio->bi_status = errno_to_blk_status(PTR_ERR(buffer)); /* Continue with any split bio payload */ } else if (write) { @@ -200,7 +200,7 @@ static void _write_zeroes(struct buffere buffer = (mod ? dm_bufio_read : dm_bufio_new)(bc->bufio, block, &bp); if (IS_ERR(buffer)) { - bio->bi_status = PTR_ERR(buffer); + bio->bi_status = errno_to_blk_status(PTR_ERR(buffer)); break; }