Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24430
b: refs/heads/master
c: 837c787
h: refs/heads/master
v: v3
  • Loading branch information
Ben Woodard authored and Jens Axboe committed Mar 27, 2006
1 parent 7b8f64f commit 5123398
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4c5d0bbde9669cfb7f7fd4670dc9a117aea90384
refs/heads/master: 837c7878771c15ed8d85ecf814ece7fcb4551b46
6 changes: 3 additions & 3 deletions trunk/block/genhd.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,8 @@ static ssize_t disk_stats_read(struct gendisk * disk, char *page)
disk_round_stats(disk);
preempt_enable();
return sprintf(page,
"%8u %8u %8llu %8u "
"%8u %8u %8llu %8u "
"%8lu %8lu %8llu %8u "
"%8lu %8lu %8llu %8u "
"%8u %8u %8u"
"\n",
disk_stat_read(disk, ios[READ]),
Expand Down Expand Up @@ -649,7 +649,7 @@ static int diskstats_show(struct seq_file *s, void *v)
preempt_disable();
disk_round_stats(gp);
preempt_enable();
seq_printf(s, "%4d %4d %s %u %u %llu %u %u %u %llu %u %u %u %u\n",
seq_printf(s, "%4d %4d %s %lu %lu %llu %u %lu %lu %llu %u %u %u %u\n",
gp->major, n + gp->first_minor, disk_name(gp, n, buf),
disk_stat_read(gp, ios[0]), disk_stat_read(gp, merges[0]),
(unsigned long long)disk_stat_read(gp, sectors[0]),
Expand Down
12 changes: 6 additions & 6 deletions trunk/include/linux/genhd.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ struct hd_struct {
#define GENHD_FL_SUPPRESS_PARTITION_INFO 32

struct disk_stats {
unsigned sectors[2]; /* READs and WRITEs */
unsigned ios[2];
unsigned merges[2];
unsigned ticks[2];
unsigned io_ticks;
unsigned time_in_queue;
unsigned long sectors[2]; /* READs and WRITEs */
unsigned long ios[2];
unsigned long merges[2];
unsigned long ticks[2];
unsigned long io_ticks;
unsigned long time_in_queue;
};

struct gendisk {
Expand Down

0 comments on commit 5123398

Please sign in to comment.