diff options
| author | Yu Kuai <yukuai3@huawei.com> | 2024-06-18 11:27:53 +0800 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2024-06-18 09:22:45 -0600 |
| commit | bb7e5a193d8becf3920e3848287f1b23c5fc9b24 (patch) | |
| tree | 10b542dbb5d267300e38bc788e22728e2da85174 /block/blk-cgroup.h | |
| parent | b83bd486b43d2b7f10595a9d7a52d41023eaa9c1 (diff) | |
| download | linux-bb7e5a193d8becf3920e3848287f1b23c5fc9b24.tar.gz linux-bb7e5a193d8becf3920e3848287f1b23c5fc9b24.tar.bz2 linux-bb7e5a193d8becf3920e3848287f1b23c5fc9b24.zip | |
block, bfq: remove blkg_path()
After commit 35fe6d763229 ("block: use standard blktrace API to output
cgroup info for debug notes"), the field 'bfqg->blkg_path' is not used
and hence can be removed, and therefor blkg_path() is not used anymore
and can be removed.
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20240618032753.3502528-1-yukuai1@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-cgroup.h')
| -rw-r--r-- | block/blk-cgroup.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/block/blk-cgroup.h b/block/blk-cgroup.h index 90b3959d88cf..bd472a30bc61 100644 --- a/block/blk-cgroup.h +++ b/block/blk-cgroup.h @@ -301,19 +301,6 @@ static inline struct blkcg *cpd_to_blkcg(struct blkcg_policy_data *cpd) } /** - * blkg_path - format cgroup path of blkg - * @blkg: blkg of interest - * @buf: target buffer - * @buflen: target buffer length - * - * Format the path of the cgroup of @blkg into @buf. - */ -static inline int blkg_path(struct blkcg_gq *blkg, char *buf, int buflen) -{ - return cgroup_path(blkg->blkcg->css.cgroup, buf, buflen); -} - -/** * blkg_get - get a blkg reference * @blkg: blkg to get * |
