From: Mike Galbraith <mikeg@wen-online.de>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: [patchlet] move kstat.pgpgin/out into submit_bh()
Date: Sat, 23 Dec 2000 08:09:57 +0100 (CET) [thread overview]
Message-ID: <Pine.Linu.4.10.10012230757470.1434-100000@mikeg.weiden.de> (raw)
Merry Xmas All,
read/write-page() I/O isn't visible in kstat.
--- linux-2.4.0-test13-pre4/drivers/block/ll_rw_blk.c.org Sat Dec 23 07:08:28 2000
+++ linux-2.4.0-test13-pre4/drivers/block/ll_rw_blk.c Sat Dec 23 07:28:38 2000
@@ -964,6 +964,14 @@
bh->b_rsector = bh->b_blocknr * (bh->b_size>>9);
generic_make_request(rw, bh);
+
+ switch (rw) {
+ case WRITE:
+ kstat.pgpgout++;
+ break;
+ default:
+ kstat.pgpgin++;
+ }
}
/*
@@ -1057,7 +1065,6 @@
/* Hmmph! Nothing to write */
goto end_io;
__mark_buffer_clean(bh);
- kstat.pgpgout++;
break;
case READA:
@@ -1065,7 +1072,6 @@
if (buffer_uptodate(bh))
/* Hmmph! Already have it */
goto end_io;
- kstat.pgpgin++;
break;
default:
BUG();
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
reply other threads:[~2000-12-23 7:41 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=Pine.Linu.4.10.10012230757470.1434-100000@mikeg.weiden.de \
--to=mikeg@wen-online.de \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/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;
as well as URLs for NNTP newsgroup(s).