blkcg: remove blkcg->id
authorTejun Heo <tj@kernel.org>
Sun, 7 Sep 2014 23:15:20 +0000 (08:15 +0900)
committerJens Axboe <axboe@fb.com>
Mon, 8 Sep 2014 15:55:37 +0000 (09:55 -0600)
commitf4da80727cfbc3590d95ff17ef8db96e6f1483a4
treecd073c26cb66e6d2f8640c3aabb412ff22946b63
parent55872c5a3c01f0fe7b5298d19e24e237f5b5ff06
blkcg: remove blkcg->id

blkcg->id is a unique id given to each blkcg; however, the
cgroup_subsys_state which each blkcg embeds already has ->serial_nr
which can be used for the same purpose.  Drop blkcg->id and replace
its uses with blkcg->css.serial_nr.  Rename cfq_cgroup->blkcg_id to
->blkcg_serial_nr and @id in check_blkcg_changed() to @serial_nr for
consistency.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-cgroup.c
block/blk-cgroup.h
block/cfq-iosched.c