diff options
Diffstat (limited to 'include/linux/blktrace_api.h')
-rw-r--r-- | include/linux/blktrace_api.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/blktrace_api.h b/include/linux/blktrace_api.h index 416bf62d6d46..23faa67e8022 100644 --- a/include/linux/blktrace_api.h +++ b/include/linux/blktrace_api.h | |||
@@ -224,7 +224,7 @@ static inline int blk_trace_init_sysfs(struct device *dev) | |||
224 | 224 | ||
225 | static inline int blk_cmd_buf_len(struct request *rq) | 225 | static inline int blk_cmd_buf_len(struct request *rq) |
226 | { | 226 | { |
227 | return blk_pc_request(rq) ? rq->cmd_len * 3 : 1; | 227 | return (rq->cmd_type == REQ_TYPE_BLOCK_PC) ? rq->cmd_len * 3 : 1; |
228 | } | 228 | } |
229 | 229 | ||
230 | extern void blk_dump_cmd(char *buf, struct request *rq); | 230 | extern void blk_dump_cmd(char *buf, struct request *rq); |