mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 21:21:09 +00:00
dm rq: change ->rq_end_io calling conventions
Instead of returning either a DM_ENDIO_* constant or an error code, add a new DM_ENDIO_DONE value that means keep errno as is. This allows us to easily keep the existing error code in case where we can't push back, and it also preparares for the new block level status codes with strict type checking. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
This commit is contained in:
parent
b79f10eefd
commit
7ed8578a96
3 changed files with 20 additions and 11 deletions
|
@ -593,6 +593,7 @@ extern struct ratelimit_state dm_ratelimit_state;
|
|||
/*
|
||||
* Definitions of return values from target end_io function.
|
||||
*/
|
||||
#define DM_ENDIO_DONE 0
|
||||
#define DM_ENDIO_INCOMPLETE 1
|
||||
#define DM_ENDIO_REQUEUE 2
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue