]> git.baikalelectronics.ru Git - kernel.git/commit
blkcg: remove unnecessary blkcg_root handling from css_alloc/free paths
authorTejun Heo <tj@kernel.org>
Tue, 18 Aug 2015 21:55:08 +0000 (14:55 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 18 Aug 2015 22:49:16 +0000 (15:49 -0700)
commit564531a2d413308971e036ba68456dee92418624
tree9782354c7f36f1fcc3c2ada7b12937c45b309028
parentd0f3778a8d921cd380a414de401590ca1d2e736b
blkcg: remove unnecessary blkcg_root handling from css_alloc/free paths

blkcg_css_alloc() bypasses policy data allocation and blkcg_css_free()
bypasses policy data and blkcg freeing for blkcg_root.  There's no
reason to to treat policy data any differently for blkcg_root.  If the
root css gets allocated after policies are registered, policy
registration path will add policy data; otherwise, the alloc path
will.  The free path isn't never invoked for root csses.

This patch removes the unnecessary special handling of blkcg_root from
css_alloc/free paths.

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