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
/
nvme
/
host
/
nvme.h
diff --git
a/drivers/nvme/host/nvme.h
b/drivers/nvme/host/nvme.h
index
1daa048
..
4d196d2
100644
(file)
--- a/
drivers/nvme/host/nvme.h
+++ b/
drivers/nvme/host/nvme.h
@@
-177,7
+177,7
@@
static inline u64 nvme_block_nr(struct nvme_ns *ns, sector_t sector)
static inline unsigned nvme_map_len(struct request *rq)
{
static inline unsigned nvme_map_len(struct request *rq)
{
- if (r
q->cmd_flags & REQ
_DISCARD)
+ if (r
eq_op(rq) == REQ_OP
_DISCARD)
return sizeof(struct nvme_dsm_range);
else
return blk_rq_bytes(rq);
return sizeof(struct nvme_dsm_range);
else
return blk_rq_bytes(rq);
@@
-185,7
+185,7
@@
static inline unsigned nvme_map_len(struct request *rq)
static inline void nvme_cleanup_cmd(struct request *req)
{
static inline void nvme_cleanup_cmd(struct request *req)
{
- if (req
->cmd_flags & REQ
_DISCARD)
+ if (req
_op(req) == REQ_OP
_DISCARD)
kfree(req->completion_data);
}
kfree(req->completion_data);
}