Skip to content

Commit 599d067

Browse files
Chengguang Xuaxboe
authored andcommitted
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 <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent fc8ebd0 commit 599d067

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

block/blk.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ extern int blk_update_nr_requests(struct request_queue *, unsigned int);
297297
* b) the queue had IO stats enabled when this request was started, and
298298
* c) it's a file system request
299299
*/
300-
static inline int blk_do_io_stat(struct request *rq)
300+
static inline bool blk_do_io_stat(struct request *rq)
301301
{
302302
return rq->rq_disk &&
303303
(rq->rq_flags & RQF_IO_STAT) &&

0 commit comments

Comments
 (0)