Skip to content

Commit 8a80d5d

Browse files
htejunaxboe
authored andcommitted
blk-cgroup: remove now unused blkg_print_stat_{bytes|ios}_recursive()
These don't have users anymore. Remove them. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 7ca4643 commit 8a80d5d

2 files changed

Lines changed: 0 additions & 88 deletions

File tree

‎block/blk-cgroup.c‎

Lines changed: 0 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -615,89 +615,6 @@ u64 blkg_prfill_rwstat(struct seq_file *sf, struct blkg_policy_data *pd,
615615
}
616616
EXPORT_SYMBOL_GPL(blkg_prfill_rwstat);
617617

618-
static u64 blkg_prfill_rwstat_field(struct seq_file *sf,
619-
struct blkg_policy_data *pd, int off)
620-
{
621-
struct blkg_rwstat_sample rwstat = { };
622-
623-
blkg_rwstat_read((void *)pd->blkg + off, &rwstat);
624-
return __blkg_prfill_rwstat(sf, pd, &rwstat);
625-
}
626-
627-
/**
628-
* blkg_print_stat_bytes - seq_show callback for blkg->stat_bytes
629-
* @sf: seq_file to print to
630-
* @v: unused
631-
*
632-
* To be used as cftype->seq_show to print blkg->stat_bytes.
633-
* cftype->private must be set to the blkcg_policy.
634-
*/
635-
int blkg_print_stat_bytes(struct seq_file *sf, void *v)
636-
{
637-
blkcg_print_blkgs(sf, css_to_blkcg(seq_css(sf)),
638-
blkg_prfill_rwstat_field, (void *)seq_cft(sf)->private,
639-
offsetof(struct blkcg_gq, stat_bytes), true);
640-
return 0;
641-
}
642-
EXPORT_SYMBOL_GPL(blkg_print_stat_bytes);
643-
644-
/**
645-
* blkg_print_stat_bytes - seq_show callback for blkg->stat_ios
646-
* @sf: seq_file to print to
647-
* @v: unused
648-
*
649-
* To be used as cftype->seq_show to print blkg->stat_ios. cftype->private
650-
* must be set to the blkcg_policy.
651-
*/
652-
int blkg_print_stat_ios(struct seq_file *sf, void *v)
653-
{
654-
blkcg_print_blkgs(sf, css_to_blkcg(seq_css(sf)),
655-
blkg_prfill_rwstat_field, (void *)seq_cft(sf)->private,
656-
offsetof(struct blkcg_gq, stat_ios), true);
657-
return 0;
658-
}
659-
EXPORT_SYMBOL_GPL(blkg_print_stat_ios);
660-
661-
static u64 blkg_prfill_rwstat_field_recursive(struct seq_file *sf,
662-
struct blkg_policy_data *pd,
663-
int off)
664-
{
665-
struct blkg_rwstat_sample rwstat;
666-
667-
blkg_rwstat_recursive_sum(pd->blkg, NULL, off, &rwstat);
668-
return __blkg_prfill_rwstat(sf, pd, &rwstat);
669-
}
670-
671-
/**
672-
* blkg_print_stat_bytes_recursive - recursive version of blkg_print_stat_bytes
673-
* @sf: seq_file to print to
674-
* @v: unused
675-
*/
676-
int blkg_print_stat_bytes_recursive(struct seq_file *sf, void *v)
677-
{
678-
blkcg_print_blkgs(sf, css_to_blkcg(seq_css(sf)),
679-
blkg_prfill_rwstat_field_recursive,
680-
(void *)seq_cft(sf)->private,
681-
offsetof(struct blkcg_gq, stat_bytes), true);
682-
return 0;
683-
}
684-
EXPORT_SYMBOL_GPL(blkg_print_stat_bytes_recursive);
685-
686-
/**
687-
* blkg_print_stat_ios_recursive - recursive version of blkg_print_stat_ios
688-
* @sf: seq_file to print to
689-
* @v: unused
690-
*/
691-
int blkg_print_stat_ios_recursive(struct seq_file *sf, void *v)
692-
{
693-
blkcg_print_blkgs(sf, css_to_blkcg(seq_css(sf)),
694-
blkg_prfill_rwstat_field_recursive,
695-
(void *)seq_cft(sf)->private,
696-
offsetof(struct blkcg_gq, stat_ios), true);
697-
return 0;
698-
}
699-
EXPORT_SYMBOL_GPL(blkg_print_stat_ios_recursive);
700-
701618
/**
702619
* blkg_rwstat_recursive_sum - collect hierarchical blkg_rwstat
703620
* @blkg: blkg of interest

‎include/linux/blk-cgroup.h‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,6 @@ u64 __blkg_prfill_rwstat(struct seq_file *sf, struct blkg_policy_data *pd,
220220
const struct blkg_rwstat_sample *rwstat);
221221
u64 blkg_prfill_rwstat(struct seq_file *sf, struct blkg_policy_data *pd,
222222
int off);
223-
int blkg_print_stat_bytes(struct seq_file *sf, void *v);
224-
int blkg_print_stat_ios(struct seq_file *sf, void *v);
225-
int blkg_print_stat_bytes_recursive(struct seq_file *sf, void *v);
226-
int blkg_print_stat_ios_recursive(struct seq_file *sf, void *v);
227-
228223
void blkg_rwstat_recursive_sum(struct blkcg_gq *blkg, struct blkcg_policy *pol,
229224
int off, struct blkg_rwstat_sample *sum);
230225

0 commit comments

Comments
 (0)