Commit 908325dc authored by Andrew Morton's avatar Andrew Morton Committed by Russell King

[PATCH] fix /proc/vmstat:pgpgout/pgpgin

These numbers are being sent to userspace as number-of-sectors, whereas
they should be number-of-k.
parent 5868a499
...@@ -1876,7 +1876,7 @@ void generic_make_request(struct bio *bio) ...@@ -1876,7 +1876,7 @@ void generic_make_request(struct bio *bio)
*/ */
int submit_bio(int rw, struct bio *bio) int submit_bio(int rw, struct bio *bio)
{ {
int count = bio_sectors(bio); int count = bio_sectors(bio) >> 1;
BUG_ON(!bio->bi_end_io); BUG_ON(!bio->bi_end_io);
BIO_BUG_ON(!bio->bi_size); BIO_BUG_ON(!bio->bi_size);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment