diff options
author | Chengguang Xu <cgxu519@gmx.com> | 2018-08-16 17:51:40 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-08-16 22:44:17 +0300 |
commit | 599d067dd3c1b9697b786c992b17cd6529c0459c (patch) | |
tree | 452a4a791d882edc4efa0fedd0663785b798fef6 /block/blk.h | |
parent | fc8ebd01deeb12728c83381f6ec923e4a192ffd3 (diff) | |
download | linux-599d067dd3c1b9697b786c992b17cd6529c0459c.tar.xz |
block: change return type to bool
Because blk_do_io_stat() only does a judgement about the request
contributes to IO statistics, it better changes return type to bool.
Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk.h')
-rw-r--r-- | block/blk.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk.h b/block/blk.h index d4d67e948920..644975e85053 100644 --- a/block/blk.h +++ b/block/blk.h @@ -297,7 +297,7 @@ extern int blk_update_nr_requests(struct request_queue *, unsigned int); * b) the queue had IO stats enabled when this request was started, and * c) it's a file system request */ -static inline int blk_do_io_stat(struct request *rq) +static inline bool blk_do_io_stat(struct request *rq) { return rq->rq_disk && (rq->rq_flags & RQF_IO_STAT) && |