public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jerome Marchand <jmarchan@redhat.com>
To: linux-kernel@vger.kernel.org
Cc: axboe@kernel.dk, chirag.kantharia@hp.com
Subject: [Patch 5/8] Enhanced partition statistics: cpqarray fix
Date: Thu, 13 Dec 2007 17:17:54 +0100	[thread overview]
Message-ID: <47615B32.1000001@redhat.com> (raw)

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);


                 reply	other threads:[~2007-12-13 16:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47615B32.1000001@redhat.com \
    --to=jmarchan@redhat.com \
    --cc=axboe@kernel.dk \
    --cc=chirag.kantharia@hp.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox