mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
blk-stat: kill blk_stat_rq_ddir()
No point in providing and exporting this helper. There's just one (real) user of it, just use rq_data_dir(). Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
1cc1f17aab
commit
99c749a4c4
4 changed files with 7 additions and 19 deletions
|
|
@ -112,17 +112,6 @@ static inline void blk_stat_set_issue(struct blk_issue_stat *stat,
|
|||
/* record time/size info in request but not add a callback */
|
||||
void blk_stat_enable_accounting(struct request_queue *q);
|
||||
|
||||
/*
|
||||
* blk_stat_rq_ddir() - Bucket callback function for the request data direction.
|
||||
* @rq: Request.
|
||||
*
|
||||
* This is the same as rq_data_dir() but as a function so it can be used as
|
||||
* @bucket_fn for blk_stat_alloc_callback().
|
||||
*
|
||||
* Return: Data direction of the request, either READ or WRITE.
|
||||
*/
|
||||
int blk_stat_rq_ddir(const struct request *rq);
|
||||
|
||||
/**
|
||||
* blk_stat_alloc_callback() - Allocate a block statistics callback.
|
||||
* @timer_fn: Timer callback function.
|
||||
|
|
|
|||
Loading…
Reference in a new issue