Skip to contentSkip to conversation

Enhanced partition statistics: cpqarray fix

PATCH In review Jerome Marchand 1 participant 1 message Dec 13, 2007 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 5/8 Enhanced partition statistics: cpqarray fix

Updates the enhanced partition statistics in SMART2 driver (not tested).

---
 cpqarray.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/block/cpqarray.c +2 -1
diff -urNp -X linux-2.6/Documentation/dontdiff linux-2.6.orig/drivers/block/cpqarray.c linux-2.6/drivers/block/cpqarray.c
@@ -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);