summaryrefslogtreecommitdiffstats
path: root/block/bfq-cgroup.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/bfq-cgroup.c')
-rw-r--r--block/bfq-cgroup.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/block/bfq-cgroup.c b/block/bfq-cgroup.c
index 0f6cd688924f..e6fb537b4bfc 100644
--- a/block/bfq-cgroup.c
+++ b/block/bfq-cgroup.c
@@ -501,11 +501,12 @@ static void bfq_cpd_free(struct blkcg_policy_data *cpd)
501 kfree(cpd_to_bfqgd(cpd)); 501 kfree(cpd_to_bfqgd(cpd));
502} 502}
503 503
504static struct blkg_policy_data *bfq_pd_alloc(gfp_t gfp, int node) 504static struct blkg_policy_data *bfq_pd_alloc(gfp_t gfp, struct request_queue *q,
505 struct blkcg *blkcg)
505{ 506{
506 struct bfq_group *bfqg; 507 struct bfq_group *bfqg;
507 508
508 bfqg = kzalloc_node(sizeof(*bfqg), gfp, node); 509 bfqg = kzalloc_node(sizeof(*bfqg), gfp, q->node);
509 if (!bfqg) 510 if (!bfqg)
510 return NULL; 511 return NULL;
511 512