]> git.baikalelectronics.ru Git - kernel.git/commit
blkcg: fix minor bug in blkg_alloc()
authorTejun Heo <tj@kernel.org>
Wed, 9 Jan 2013 16:05:10 +0000 (08:05 -0800)
committerTejun Heo <tj@kernel.org>
Wed, 9 Jan 2013 16:05:10 +0000 (08:05 -0800)
commit663a6f792f1ddfe5fcac0b63325c779702e16650
treec3c10018d5856523ba6a8a3816b433a1b5214412
parentd7db0bbd745661c33b543d62c59bdc9115ca72cd
blkcg: fix minor bug in blkg_alloc()

blkg_alloc() was mistakenly checking blkcg_policy_enabled() twice.
The latter test should have been on whether pol->pd_init_fn() exists.
This doesn't cause actual problems because both blkcg policies
implement pol->pd_init_fn().  Fix it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
block/blk-cgroup.c