Updates the enhanced partition statistics in SMART2 driver (not tested).
Signed-off-by: Jerome Marchand <[email protected]>
---
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);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]