patch-2.3.99-pre8 linux/include/linux/kernel_stat.h

Next file: linux/include/linux/netfilter_ipv4/ip_tables.h
Previous file: linux/include/linux/genhd.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre7/linux/include/linux/kernel_stat.h linux/include/linux/kernel_stat.h
@@ -12,18 +12,19 @@
  * used by rstatd/perfmeter
  */
 
-#define DK_NDRIVE 4
+#define DK_MAX_MAJOR 16
+#define DK_MAX_DISK 16
 
 struct kernel_stat {
 	unsigned int cpu_user, cpu_nice, cpu_system;	
 	unsigned int per_cpu_user[NR_CPUS],
 	             per_cpu_nice[NR_CPUS],
 	             per_cpu_system[NR_CPUS];
-	unsigned int dk_drive[DK_NDRIVE];
-	unsigned int dk_drive_rio[DK_NDRIVE];
-	unsigned int dk_drive_wio[DK_NDRIVE];
-	unsigned int dk_drive_rblk[DK_NDRIVE];
-	unsigned int dk_drive_wblk[DK_NDRIVE];
+	unsigned int dk_drive[DK_MAX_MAJOR][DK_MAX_DISK];
+	unsigned int dk_drive_rio[DK_MAX_MAJOR][DK_MAX_DISK];
+	unsigned int dk_drive_wio[DK_MAX_MAJOR][DK_MAX_DISK];
+	unsigned int dk_drive_rblk[DK_MAX_MAJOR][DK_MAX_DISK];
+	unsigned int dk_drive_wblk[DK_MAX_MAJOR][DK_MAX_DISK];
 	unsigned int pgpgin, pgpgout;
 	unsigned int pswpin, pswpout;
 #if !defined(CONFIG_ARCH_S390)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)