Skip to content

Commit dfb79af

Browse files
KAGA-KOKOaxboe
authored andcommitted
bfq: Declare local functions static
Acked-by: Paolo Valente <paolo.valente@linaro.org> Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent fa393d1 commit dfb79af

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

‎block/bfq-cgroup.c‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ static void bfqg_get(struct bfq_group *bfqg)
206206
bfqg->ref++;
207207
}
208208

209-
void bfqg_put(struct bfq_group *bfqg)
209+
static void bfqg_put(struct bfq_group *bfqg)
210210
{
211211
bfqg->ref--;
212212

@@ -385,7 +385,7 @@ static struct bfq_group_data *blkcg_to_bfqgd(struct blkcg *blkcg)
385385
return cpd_to_bfqgd(blkcg_to_cpd(blkcg, &blkcg_policy_bfq));
386386
}
387387

388-
struct blkcg_policy_data *bfq_cpd_alloc(gfp_t gfp)
388+
static struct blkcg_policy_data *bfq_cpd_alloc(gfp_t gfp)
389389
{
390390
struct bfq_group_data *bgd;
391391

@@ -395,20 +395,20 @@ struct blkcg_policy_data *bfq_cpd_alloc(gfp_t gfp)
395395
return &bgd->pd;
396396
}
397397

398-
void bfq_cpd_init(struct blkcg_policy_data *cpd)
398+
static void bfq_cpd_init(struct blkcg_policy_data *cpd)
399399
{
400400
struct bfq_group_data *d = cpd_to_bfqgd(cpd);
401401

402402
d->weight = cgroup_subsys_on_dfl(io_cgrp_subsys) ?
403403
CGROUP_WEIGHT_DFL : BFQ_WEIGHT_LEGACY_DFL;
404404
}
405405

406-
void bfq_cpd_free(struct blkcg_policy_data *cpd)
406+
static void bfq_cpd_free(struct blkcg_policy_data *cpd)
407407
{
408408
kfree(cpd_to_bfqgd(cpd));
409409
}
410410

411-
struct blkg_policy_data *bfq_pd_alloc(gfp_t gfp, int node)
411+
static struct blkg_policy_data *bfq_pd_alloc(gfp_t gfp, int node)
412412
{
413413
struct bfq_group *bfqg;
414414

@@ -426,7 +426,7 @@ struct blkg_policy_data *bfq_pd_alloc(gfp_t gfp, int node)
426426
return &bfqg->pd;
427427
}
428428

429-
void bfq_pd_init(struct blkg_policy_data *pd)
429+
static void bfq_pd_init(struct blkg_policy_data *pd)
430430
{
431431
struct blkcg_gq *blkg = pd_to_blkg(pd);
432432
struct bfq_group *bfqg = blkg_to_bfqg(blkg);
@@ -445,15 +445,15 @@ void bfq_pd_init(struct blkg_policy_data *pd)
445445
bfqg->rq_pos_tree = RB_ROOT;
446446
}
447447

448-
void bfq_pd_free(struct blkg_policy_data *pd)
448+
static void bfq_pd_free(struct blkg_policy_data *pd)
449449
{
450450
struct bfq_group *bfqg = pd_to_bfqg(pd);
451451

452452
bfqg_stats_exit(&bfqg->stats);
453453
bfqg_put(bfqg);
454454
}
455455

456-
void bfq_pd_reset_stats(struct blkg_policy_data *pd)
456+
static void bfq_pd_reset_stats(struct blkg_policy_data *pd)
457457
{
458458
struct bfq_group *bfqg = pd_to_bfqg(pd);
459459

@@ -740,7 +740,7 @@ static void bfq_reparent_active_entities(struct bfq_data *bfqd,
740740
* blkio already grabs the queue_lock for us, so no need to use
741741
* RCU-based magic
742742
*/
743-
void bfq_pd_offline(struct blkg_policy_data *pd)
743+
static void bfq_pd_offline(struct blkg_policy_data *pd)
744744
{
745745
struct bfq_service_tree *st;
746746
struct bfq_group *bfqg = pd_to_bfqg(pd);

0 commit comments

Comments
 (0)