From: Christoph Hellwig Date: Thu, 20 Apr 2017 14:03:11 +0000 (+0200) Subject: block: add a error_count field to struct request X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e26738e037f34aedfe05e412f442833f44f4a6e5;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git block: add a error_count field to struct request This is for the legacy floppy and ataflop drivers that currently abuse ->errors for this purpose. It's stashed away in a union to not grow the struct size, the other fields are either used by modern drivers for different purposes or the I/O scheduler before queing the I/O to drivers. Signed-off-by: Christoph Hellwig Signed-off-by: Jens Axboe --- diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index e2064ed3c703..a3dcee624de3 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -175,6 +175,7 @@ struct request { struct rb_node rb_node; /* sort/lookup */ struct bio_vec special_vec; void *completion_data; + int error_count; /* for legacy drivers, don't use */ }; /*