summaryrefslogtreecommitdiff
path: root/block/blk-cgroup.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-09-21 20:04:49 +0200
committerJens Axboe <axboe@kernel.dk>2022-09-26 19:09:31 -0600
commitf753526e327bc849c445c084d0f374e992038ae9 (patch)
treec27a5b9517059afbd651744999bf73add92fb07e /block/blk-cgroup.h
parent4a69f325aa43847e0827fbfe4b3623307b0c9baa (diff)
blk-cgroup: remove blkg_lookup_check
The combinations of an error check with an ERR_PTR return and a lookup with a NULL return leads to ugly handling of the return values in the callers. Just open coding the check and the lookup is much simpler. 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-6-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-cgroup.h')
0 files changed, 0 insertions, 0 deletions