]> git.baikalelectronics.ru Git - kernel.git/commit
blkcg: make blkcg_activate_policy() allow NULL ->pd_init_fn
authorTejun Heo <tj@kernel.org>
Tue, 18 Aug 2015 21:55:10 +0000 (14:55 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 18 Aug 2015 22:49:16 +0000 (15:49 -0700)
commitc5ebd43ca043087ecf33f0720ca5d69ffac4a50a
treef6b33773063f53df1ab0751199a7f6830f6398bf
parent84c5059c8dcf9946215ca88dd08abf03efbada59
blkcg: make blkcg_activate_policy() allow NULL ->pd_init_fn

blkg_create() allows NULL ->pd_init_fn() but blkcg_activate_policy()
doesn't.  As both in-kernel policies implement ->pd_init_fn, it
currently doesn't break anything.  Update blkcg_activate_policy() so
that its behavior is consistent with blkg_create().

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