blk-cgroup: cleanup the blkg_lookup family of functions
authorChristoph Hellwig <hch@lst.de>
Wed, 21 Sep 2022 18:04:48 +0000 (20:04 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 27 Sep 2022 01:09:31 +0000 (19:09 -0600)
commit4a69f325aa43847e0827fbfe4b3623307b0c9baa
tree124091c6547c16f3cd0c234f5116982097e2ff36
parent79fcc5be93e5b17a2a5d36553f7a5c1ad9e953b6
blk-cgroup: cleanup the blkg_lookup family of functions

Add a fully inlined blkg_lookup as the extra two checks aren't going
to generated a lot more code vs the call to the slowpath routine, and
open code the hint update in the two callers that care.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Andreas Herrmann <aherrmann@suse.de>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20220921180501.1539876-5-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c
block/blk-cgroup.h