]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jan 2023 10:26:22 +0000 (11:26 +0100)
commitc18fcd3ff1a80ea0dd669f8859053e0629231112
tree5cc8d27a5d862811e168410c43625b8c00ae4bc7
parent11ad26bb9160943c3f857698aedce54327224ce7
blk-cgroup: cleanup the blkg_lookup family of functions

[ Upstream commit 4a69f325aa43847e0827fbfe4b3623307b0c9baa ]

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>
Stable-dep-of: 813e693023ba ("blk-iolatency: Fix memory leak on add_disk() failures")
Signed-off-by: Sasha Levin <sashal@kernel.org>
block/blk-cgroup.c
block/blk-cgroup.h