]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - block/blk-cgroup.c
blkcg: inline [__]blkg_lookup()
authorTejun Heo <tj@kernel.org>
Tue, 18 Aug 2015 21:55:17 +0000 (14:55 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 18 Aug 2015 22:49:17 +0000 (15:49 -0700)
commit24f290466f79a6497f1654f64b9a841872cba3ca
treec7b77e5980f5cc085861580eeb44e76ac0b3f8d3
parente4a9bde9589fdc51283755cdd75d47b27ca7c6fb
blkcg: inline [__]blkg_lookup()

blkg_lookup() checks whether the target queue is bypassing and, if
not, calls __blkg_lookup() which first checks the lookup hint and then
performs radix tree walk.  The operations upto hint checking are
trivial and there are many users of this function.  This patch inlines
blkg_lookup() and the fast path part of __blkg_lookup().  The radix
tree lookup and hint update are now in blkg_lookup_slowpath().

This will help consolidating blkg handling by easing moving root blkcg
short-circuit to inlined lookup fast path.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Vivek Goyal <vgoyal@redhat.com>
Cc: Arianna Avanzini <avanzini.arianna@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-cgroup.c
include/linux/blk-cgroup.h