]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb8ac57a2f63879752e8ecd0fbbdcd3aa41a783bb
treecd073c26cb66e6d2f8640c3aabb412ff22946b63
parentc996705911d0b7f8e8e9469d3bd92779139afbe1
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