History

blkcg: pass @q and @blkcg into blkcg_pol_alloc_pd_fn()

Instead of @node, pass in @q and @blkcg so that the alloc function has more context. This doesn't cause any behavior change and will be used by io.weight implementation.

Tejun Heo committed 7 years ago

Commit cf09a8e1 parent da8c8285 files · +16 −10Browse files

Showing the changes to include/linux (1 of 5 files). Show all

Unified · Split

include/linux/blk-cgroup.h+2−1
@@ -149,7 +149,8 @@ typedef struct blkcg_policy_data *(blkcg_pol_alloc_cpd_fn)(gfp_t gfp); · 148 unmodified lines
149149 typedef void (blkcg_pol_init_cpd_fn)(struct blkcg_policy_data *cpd);
150150 typedef void (blkcg_pol_free_cpd_fn)(struct blkcg_policy_data *cpd);
151151 typedef void (blkcg_pol_bind_cpd_fn)(struct blkcg_policy_data *cpd);
152−typedef struct blkg_policy_data *(blkcg_pol_alloc_pd_fn)(gfp_t gfp, int node);
152+typedef struct blkg_policy_data *(blkcg_pol_alloc_pd_fn)(gfp_t gfp,
153+ struct request_queue *q, struct blkcg *blkcg);
153154 typedef void (blkcg_pol_init_pd_fn)(struct blkg_policy_data *pd);
154155 typedef void (blkcg_pol_online_pd_fn)(struct blkg_policy_data *pd);
155156 typedef void (blkcg_pol_offline_pd_fn)(struct blkg_policy_data *pd);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t