projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
drivers: use req op accessor
[cascardo/linux.git]
/
drivers
/
block
/
rbd.c
diff --git
a/drivers/block/rbd.c
b/drivers/block/rbd.c
index
81666a5
..
4506620
100644
(file)
--- a/
drivers/block/rbd.c
+++ b/
drivers/block/rbd.c
@@
-3286,9
+3286,9
@@
static void rbd_queue_workfn(struct work_struct *work)
goto err;
}
- if (r
q->cmd_flags & REQ
_DISCARD)
+ if (r
eq_op(rq) == REQ_OP
_DISCARD)
op_type = OBJ_OP_DISCARD;
- else if (r
q->cmd_flags & REQ
_WRITE)
+ else if (r
eq_op(rq) == REQ_OP
_WRITE)
op_type = OBJ_OP_WRITE;
else
op_type = OBJ_OP_READ;