mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
blk-mq-debugfs: make blk_mq_debugfs_register_rqos() static
Because it's only used inside blk-mq-debugfs.c now. Reviewed-by: Nilay Shroff <nilay@linux.ibm.com> Signed-off-by: Yu Kuai <yukuai@fnnas.com> Reviewed-by: Ming Lei <ming.lei@redhat.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
3c17a346ff
commit
70bafa5e31
2 changed files with 1 additions and 6 deletions
|
|
@ -744,7 +744,7 @@ void blk_mq_debugfs_unregister_rqos(struct rq_qos *rqos)
|
|||
rqos->debugfs_dir = NULL;
|
||||
}
|
||||
|
||||
void blk_mq_debugfs_register_rqos(struct rq_qos *rqos)
|
||||
static void blk_mq_debugfs_register_rqos(struct rq_qos *rqos)
|
||||
{
|
||||
struct request_queue *q = rqos->disk->queue;
|
||||
const char *dir_name = rq_qos_id_to_name(rqos->id);
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@ void blk_mq_debugfs_register_sched_hctx(struct request_queue *q,
|
|||
void blk_mq_debugfs_unregister_sched_hctx(struct blk_mq_hw_ctx *hctx);
|
||||
|
||||
void blk_mq_debugfs_register_rq_qos(struct request_queue *q);
|
||||
void blk_mq_debugfs_register_rqos(struct rq_qos *rqos);
|
||||
void blk_mq_debugfs_unregister_rqos(struct rq_qos *rqos);
|
||||
#else
|
||||
static inline void blk_mq_debugfs_register(struct request_queue *q)
|
||||
|
|
@ -75,10 +74,6 @@ static inline void blk_mq_debugfs_unregister_sched_hctx(struct blk_mq_hw_ctx *hc
|
|||
{
|
||||
}
|
||||
|
||||
static inline void blk_mq_debugfs_register_rqos(struct rq_qos *rqos)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void blk_mq_debugfs_register_rq_qos(struct request_queue *q)
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue