* [Patch 5/8] Enhanced partition statistics: cpqarray fix
@ 2007-12-13 16:17 Jerome Marchand
0 siblings, 0 replies; only message in thread
From: Jerome Marchand @ 2007-12-13 16:17 UTC (permalink / raw)
To: linux-kernel; +Cc: axboe, chirag.kantharia
Updates the enhanced partition statistics in SMART2 driver (not tested).
Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
---
cpqarray.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff -urNp -X linux-2.6/Documentation/dontdiff linux-2.6.orig/drivers/block/cpqarray.c linux-2.6/drivers/block/cpqarray.c
--- linux-2.6.orig/drivers/block/cpqarray.c 2007-12-04 17:37:12.000000000 +0100
+++ linux-2.6/drivers/block/cpqarray.c 2007-12-05 13:48:28.000000000 +0100
@@ -1035,7 +1035,8 @@ static inline void complete_command(cmdl
if (blk_fs_request(rq)) {
const int rw = rq_data_dir(rq);
- disk_stat_add(rq->rq_disk, sectors[rw], rq->nr_sectors);
+ all_stat_add(rq->rq_disk, sectors[rw],
+ rq->nr_sectors, rq->sector);
}
add_disk_randomness(rq->rq_disk);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-12-13 16:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-13 16:17 [Patch 5/8] Enhanced partition statistics: cpqarray fix Jerome Marchand
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox