@@ -615,89 +615,6 @@ u64 blkg_prfill_rwstat(struct seq_file *sf, struct blkg_policy_data *pd,
615615}
616616EXPORT_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
0 commit comments