projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8977f56
)
block: add REQ_DRV bit
author
Christoph Hellwig
<
[email protected]
>
Thu, 2 Nov 2017 18:29:49 +0000
(21:29 +0300)
committer
Jens Axboe
<
[email protected]
>
Fri, 3 Nov 2017 16:31:48 +0000
(10:31 -0600)
Set aside a bit in the request/bio flags for driver use.
Signed-off-by: Christoph Hellwig <
[email protected]
>
Reviewed-by: Sagi Grimberg <
[email protected]
>
Reviewed-by: Hannes Reinecke <
[email protected]
>
Reviewed-by: Johannes Thumshirn <
[email protected]
>
Signed-off-by: Jens Axboe <
[email protected]
>
include/linux/blk_types.h
patch
|
blob
|
history
diff --git
a/include/linux/blk_types.h
b/include/linux/blk_types.h
index c4c6c8bced2e1c201db2af483c85fb54e6c02306..1b04085255fb37507ba92e3cc827b1057e88b087 100644
(file)
--- a/
include/linux/blk_types.h
+++ b/
include/linux/blk_types.h
@@
-229,6
+229,9
@@
enum req_flag_bits {
/* command specific flags for REQ_OP_WRITE_ZEROES: */
__REQ_NOUNMAP, /* do not free blocks when zeroing */
+ /* for driver use */
+ __REQ_DRV,
+
__REQ_NR_BITS, /* stops here */
};
@@
-249,6
+252,8
@@
enum req_flag_bits {
#define REQ_NOUNMAP (1ULL << __REQ_NOUNMAP)
+#define REQ_DRV (1ULL << __REQ_DRV)
+
#define REQ_FAILFAST_MASK \
(REQ_FAILFAST_DEV | REQ_FAILFAST_TRANSPORT | REQ_FAILFAST_DRIVER)