diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-02 11:06:02 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-02 11:06:02 -0500 |
commit | ec1890c5df451799dec969a3581ff72e1934b5ee (patch) | |
tree | 38e84a95297dc9c6b727b73925d5c273d110fdbe /fs | |
parent | ca23509fbaac0ea662ab0e287bebb72f743f9e1f (diff) | |
parent | 496456c24f1f4280d50b81aa5bf439ab440b3d7e (diff) |
Merge git://brick.kernel.dk/data/git/linux-2.6-block
Diffstat (limited to 'fs')
-rw-r--r-- | fs/partitions/check.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/partitions/check.c b/fs/partitions/check.c index 9c06c5434ec..8dc1822a702 100644 --- a/fs/partitions/check.c +++ b/fs/partitions/check.c | |||
@@ -246,8 +246,8 @@ static ssize_t part_size_read(struct hd_struct * p, char *page) | |||
246 | static ssize_t part_stat_read(struct hd_struct * p, char *page) | 246 | static ssize_t part_stat_read(struct hd_struct * p, char *page) |
247 | { | 247 | { |
248 | return sprintf(page, "%8u %8llu %8u %8llu\n", | 248 | return sprintf(page, "%8u %8llu %8u %8llu\n", |
249 | p->reads, (unsigned long long)p->read_sectors, | 249 | p->ios[0], (unsigned long long)p->sectors[0], |
250 | p->writes, (unsigned long long)p->write_sectors); | 250 | p->ios[1], (unsigned long long)p->sectors[1]); |
251 | } | 251 | } |
252 | static struct part_attribute part_attr_uevent = { | 252 | static struct part_attribute part_attr_uevent = { |
253 | .attr = {.name = "uevent", .mode = S_IWUSR }, | 253 | .attr = {.name = "uevent", .mode = S_IWUSR }, |
@@ -303,7 +303,8 @@ void delete_partition(struct gendisk *disk, int part) | |||
303 | disk->part[part-1] = NULL; | 303 | disk->part[part-1] = NULL; |
304 | p->start_sect = 0; | 304 | p->start_sect = 0; |
305 | p->nr_sects = 0; | 305 | p->nr_sects = 0; |
306 | p->reads = p->writes = p->read_sectors = p->write_sectors = 0; | 306 | p->ios[0] = p->ios[1] = 0; |
307 | p->sectors[0] = p->sectors[1] = 0; | ||
307 | devfs_remove("%s/part%d", disk->devfs_name, part); | 308 | devfs_remove("%s/part%d", disk->devfs_name, part); |
308 | kobject_unregister(&p->kobj); | 309 | kobject_unregister(&p->kobj); |
309 | } | 310 | } |