diff options
author | Tejun Heo <tj@kernel.org> | 2015-08-18 14:55:08 -0700 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-08-18 15:49:16 -0700 |
commit | bc915e61cde25d0b429f536cec9e83039bf23504 (patch) | |
tree | 9782354c7f36f1fcc3c2ada7b12937c45b309028 /kernel/debug | |
parent | 994b78327458ea14a1743196ee0560c73ace37f3 (diff) | |
download | op-kernel-dev-bc915e61cde25d0b429f536cec9e83039bf23504.zip op-kernel-dev-bc915e61cde25d0b429f536cec9e83039bf23504.tar.gz |
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>
Diffstat (limited to 'kernel/debug')
0 files changed, 0 insertions, 0 deletions