summaryrefslogtreecommitdiffstats
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@HansenPartnership.com>2016-02-04 21:37:52 -0800
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2016-02-04 21:37:52 -0800
commit12ffbbe94d8c0186daccc2e61d5ff87b15aa7bc6 (patch)
treeb8fe38b24a2070d5b0cb2279f86e98b6dce98c46 /include/linux/blkdev.h
parent6344a5cd3e8acf6e9823046cebd00b16faacdb1a (diff)
parent0fb5b1fb30fba3671dd5b1489d78e93e08d62e4e (diff)
downloadop-kernel-dev-12ffbbe94d8c0186daccc2e61d5ff87b15aa7bc6.zip
op-kernel-dev-12ffbbe94d8c0186daccc2e61d5ff87b15aa7bc6.tar.gz
Merge remote-tracking branch 'mkp-scsi/4.5/scsi-fixes' into fixes
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 29189ae..4571ef1 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -682,9 +682,12 @@ static inline bool blk_write_same_mergeable(struct bio *a, struct bio *b)
/*
* q->prep_rq_fn return values
*/
-#define BLKPREP_OK 0 /* serve it */
-#define BLKPREP_KILL 1 /* fatal error, kill */
-#define BLKPREP_DEFER 2 /* leave on queue */
+enum {
+ BLKPREP_OK, /* serve it */
+ BLKPREP_KILL, /* fatal error, kill, return -EIO */
+ BLKPREP_DEFER, /* leave on queue */
+ BLKPREP_INVALID, /* invalid command, kill, return -EREMOTEIO */
+};
extern unsigned long blk_max_low_pfn, blk_max_pfn;
OpenPOWER on IntegriCloud