[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-kernel
Subject:    vmstat
From:       Mike Galbraith <mikeg () wen-online ! de>
Date:       2000-12-31 18:44:44
[Download RAW message or body]

Hi,

Nobody watches vmstat any more? ;-)

--- linux-2.4.0-test13-pre7/drivers/block/ll_rw_blk.c.org	Sun Dec 31 08:41:47 2000
+++ linux-2.4.0-test13-pre7/drivers/block/ll_rw_blk.c	Sun Dec 31 08:49:21 2000
@@ -964,6 +964,15 @@
 	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++;
+			break;
+	}
 }
 
 /*
@@ -1057,7 +1066,6 @@
 				/* Hmmph! Nothing to write */
 				goto end_io;
 			__mark_buffer_clean(bh);
-			kstat.pgpgout++;
 			break;
 
 		case READA:
@@ -1065,7 +1073,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/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic