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:
dccbf08
)
rbd: start enums at 1 instead of 0
author
Ilya Dryomov
<idryomov@gmail.com>
Tue, 16 Jan 2018 11:15:02 +0000
(12:15 +0100)
committer
Ilya Dryomov
<idryomov@gmail.com>
Mon, 2 Apr 2018 08:12:38 +0000
(10:12 +0200)
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
drivers/block/rbd.c
patch
|
blob
|
history
diff --git
a/drivers/block/rbd.c
b/drivers/block/rbd.c
index 4ca0a452d88e6ee439f98edf53b2031ce0a15883..883f17d6deeb83f466f4138de213c9c0f38a7c3a 100644
(file)
--- a/
drivers/block/rbd.c
+++ b/
drivers/block/rbd.c
@@
-217,12
+217,14
@@
struct rbd_obj_request;
typedef void (*rbd_obj_callback_t)(struct rbd_obj_request *);
enum obj_request_type {
- OBJ_REQUEST_NODATA, OBJ_REQUEST_BIO, OBJ_REQUEST_PAGES
+ OBJ_REQUEST_NODATA = 1,
+ OBJ_REQUEST_BIO,
+ OBJ_REQUEST_PAGES,
};
enum obj_operation_type {
+ OBJ_OP_READ = 1,
OBJ_OP_WRITE,
- OBJ_OP_READ,
OBJ_OP_DISCARD,
};