]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit189bc6a23f1acd7f17f11a8badf869abdae39587
tree124091c6547c16f3cd0c234f5116982097e2ff36
parent6adcdd8f9ac9a8dfd9491a52277a4fdb264d91a3
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