diff options
author | Christoph Hellwig <hch@lst.de> | 2022-04-20 06:27:20 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-05-02 14:06:20 -0600 |
commit | bc5fee91f26d8d1428fb744e5ad04b1417a85197 (patch) | |
tree | 9fdbe1a53592360684a20df76412e8856546cc0c /block/blk-cgroup.h | |
parent | c97ab271576dec2170e7b804cb05f7617b30fed9 (diff) | |
download | linux-bc5fee91f26d8d1428fb744e5ad04b1417a85197.tar.gz linux-bc5fee91f26d8d1428fb744e5ad04b1417a85197.tar.bz2 linux-bc5fee91f26d8d1428fb744e5ad04b1417a85197.zip |
blk-cgroup: move blkcg_css to blk-cgroup.c
blkcg_css is only used in blk-cgroup.c, so move it there.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20220420042723.1010598-13-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-cgroup.h')
-rw-r--r-- | block/blk-cgroup.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h index 62ed8ed50b6e..bb670e53a1de 100644 --- a/block/blk-cgroup.h +++ b/block/blk-cgroup.h @@ -211,23 +211,6 @@ int blkg_conf_prep(struct blkcg *blkcg, const struct blkcg_policy *pol, void blkg_conf_finish(struct blkg_conf_ctx *ctx); /** - * blkcg_css - find the current css - * - * Find the css associated with either the kthread or the current task. - * This may return a dying css, so it is up to the caller to use tryget logic - * to confirm it is alive and well. - */ -static inline struct cgroup_subsys_state *blkcg_css(void) -{ - struct cgroup_subsys_state *css; - - css = kthread_blkcg(); - if (css) - return css; - return task_css(current, io_cgrp_id); -} - -/** * bio_issue_as_root_blkg - see if this bio needs to be issued as root blkg * @return: true if this bio needs to be submitted with the root blkg context. * |