X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fosd-zfs%2Fosd_lproc.c;h=bedc4787e0eeb1e46c5fc590499c18f6a0350fa4;hp=7944f183767cba309f45a57d7448c36dc2ddaafd;hb=9b924e86b27d;hpb=e486703b5278cfd70f31929351f94d519a177135 diff --git a/lustre/osd-zfs/osd_lproc.c b/lustre/osd-zfs/osd_lproc.c index 7944f18..bedc478 100644 --- a/lustre/osd-zfs/osd_lproc.c +++ b/lustre/osd-zfs/osd_lproc.c @@ -46,8 +46,6 @@ #ifdef CONFIG_PROC_FS -#define pct(a, b) (b ? a * 100 / b : 0) - static void display_brw_stats(struct seq_file *seq, char *name, char *units, struct obd_histogram *read, struct obd_histogram *write, int scale) @@ -78,7 +76,7 @@ static void display_brw_stats(struct seq_file *seq, char *name, char *units, else seq_printf(seq, "%uM", scale << (i-20)); - seq_printf(seq, ":\t\t%10lu %3lu %3lu | %4lu %3lu %3lu\n", + seq_printf(seq, ":\t\t%10lu %3u %3u | %4lu %3u %3u\n", r, pct(r, read_tot), pct(read_cum, read_tot), w, pct(w, write_tot), pct(write_cum, write_tot)); @@ -124,8 +122,6 @@ static void brw_stats_show(struct seq_file *seq, struct brw_stats *brw_stats) &brw_stats->hist[BRW_W_DISK_IOSIZE], 1); } -#undef pct - static int osd_brw_stats_seq_show(struct seq_file *seq, void *v) { struct osd_device *osd = seq->private;