rue/io: fix blkcg_dkstats_show_comm implicit declaration error
Upstream: no Fix compile error msg of "error: implicit declaration of function ‘blkcg_dkstats_show_comm’" when CONFIG_CGROUPFS enabled and CONFIG_BLK_CGROUP_DISKSTATS disabled. Co-developed-by: Like Xu <likexu@tencent.com> Signed-off-by: Like Xu <likexu@tencent.com> Signed-off-by: Haisu Wang <haisuwang@tencent.com> Reviewed-by: Kairui Song <kasong@tencent.com>
This commit is contained in:
parent
174d3267d3
commit
9b585b2f68
|
@ -999,7 +999,7 @@ static int blkcg_reset_stats(struct cgroup_subsys_state *css,
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_CGROUPFS
|
||||
#if defined(CONFIG_CGROUPFS) && defined(CONFIG_BLK_CGROUP_DISKSTATS)
|
||||
int blkcg_cgroupfs_dkstats_show(struct seq_file *m, void *v)
|
||||
{
|
||||
int ret;
|
||||
|
|
|
@ -477,7 +477,9 @@ static int cgroupfs_fill_super(struct super_block *sb, void *data, int silent)
|
|||
cgroupfs_new_entry(sb, "stat", proc, CGROUPFS_TYPE_STAT, f_mode);
|
||||
cgroupfs_new_entry(sb, "uptime", proc, CGROUPFS_TYPE_UPTIME, f_mode);
|
||||
cgroupfs_new_entry(sb, "loadavg", proc, CGROUPFS_TYPE_LOADAVG, f_mode);
|
||||
#ifdef CONFIG_BLK_CGROUP_DISKSTATS
|
||||
cgroupfs_new_entry(sb, "diskstats", proc, CGROUPFS_TYPE_DKSTATS, f_mode);
|
||||
#endif
|
||||
cgroupfs_new_entry(sb, "vmstat", proc, CGROUPFS_TYPE_VMSTAT, f_mode);
|
||||
|
||||
entry = cgroupfs_new_entry(sb, "devices", sys, CGROUPFS_TYPE_NORMAL_DIR, d_mode);
|
||||
|
|
|
@ -15,7 +15,9 @@ extern int cpuset_cgroupfs_stat_show(struct seq_file *m, void *v);
|
|||
extern int mem_cgroupfs_meminfo_show(struct seq_file *m, void *v);
|
||||
extern int cpuacct_cgroupfs_uptime_show(struct seq_file *m, void *v);
|
||||
extern int cpuset_cgroupfs_loadavg_show(struct seq_file *m, void *v);
|
||||
#ifdef CONFIG_BLK_CGROUP_DISKSTATS
|
||||
extern int blkcg_cgroupfs_dkstats_show(struct seq_file *m, void *v);
|
||||
#endif
|
||||
extern int mem_cgroupfs_vmstat_show(struct seq_file *m, void *v);
|
||||
extern int cpu_get_max_cpus(struct task_struct *p);
|
||||
extern int cpuset_cgroupfs_get_cpu_count(void);
|
||||
|
@ -50,8 +52,10 @@ static int cgroup_fs_show(struct seq_file *m, void *v)
|
|||
return cpuacct_cgroupfs_uptime_show(m, v);
|
||||
case CGROUPFS_TYPE_LOADAVG:
|
||||
return cpuset_cgroupfs_loadavg_show(m, v);
|
||||
#ifdef CONFIG_BLK_CGROUP_DISKSTATS
|
||||
case CGROUPFS_TYPE_DKSTATS:
|
||||
return blkcg_cgroupfs_dkstats_show(m, v);
|
||||
#endif
|
||||
case CGROUPFS_TYPE_VMSTAT:
|
||||
return mem_cgroupfs_vmstat_show(m, v);
|
||||
case CGROUPFS_TYPE_CPU_ONLINE:
|
||||
|
|
Loading…
Reference in New Issue