summaryrefslogtreecommitdiffstats
path: root/block/blk-throttle.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2015-08-18 17:55:30 -0400
committerJens Axboe <axboe@fb.com>2015-08-18 18:49:18 -0400
commit880f50e228f80626dff6327a6e281e40286f5228 (patch)
tree6cd8143cf1376e65c627138e07cd40debdc17e5d /block/blk-throttle.c
parentc165b3e3c7bb68c2ed55a5ac2623f030d01d9567 (diff)
blkcg: mark existing cftypes as legacy
blkcg is about to grow interface for the unified hierarchy. Add legacy to existing cftypes. * blkcg_policy->cftypes -> blkcg_policy->legacy_cftypes * blk-cgroup.c:blkcg_files -> blkcg_legacy_files * cfq-iosched.c:cfq_blkcg_files -> cfq_blkcg_legacy_files * blk-throttle.c:throtl_files -> throtl_legacy_files Pure renames. No functional change. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-throttle.c')
-rw-r--r--block/blk-throttle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/block/blk-throttle.c b/block/blk-throttle.c
index bd3e4b2c7a9d..8b4f6b81bb72 100644
--- a/block/blk-throttle.c
+++ b/block/blk-throttle.c
@@ -1217,7 +1217,7 @@ static ssize_t tg_set_conf_uint(struct kernfs_open_file *of,
1217 return tg_set_conf(of, buf, nbytes, off, false); 1217 return tg_set_conf(of, buf, nbytes, off, false);
1218} 1218}
1219 1219
1220static struct cftype throtl_files[] = { 1220static struct cftype throtl_legacy_files[] = {
1221 { 1221 {
1222 .name = "throttle.read_bps_device", 1222 .name = "throttle.read_bps_device",
1223 .private = offsetof(struct throtl_grp, bps[READ]), 1223 .private = offsetof(struct throtl_grp, bps[READ]),
@@ -1263,7 +1263,7 @@ static void throtl_shutdown_wq(struct request_queue *q)
1263} 1263}
1264 1264
1265static struct blkcg_policy blkcg_policy_throtl = { 1265static struct blkcg_policy blkcg_policy_throtl = {
1266 .cftypes = throtl_files, 1266 .legacy_cftypes = throtl_legacy_files,
1267 1267
1268 .pd_alloc_fn = throtl_pd_alloc, 1268 .pd_alloc_fn = throtl_pd_alloc,
1269 .pd_init_fn = throtl_pd_init, 1269 .pd_init_fn = throtl_pd_init,