]> git.neil.brown.name Git - history.git/commit
[PATCH] fix disk IO stats for 512-byte IOs
authorAndrew Morton <akpm@digeo.com>
Sun, 13 Oct 2002 09:58:50 +0000 (02:58 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sun, 13 Oct 2002 09:58:50 +0000 (02:58 -0700)
commit12c2674904cb75097e613e5459a95343805f496d
tree38d522d55d7eaf2ecadc4c6fa82180eb01e7c4ec
parent71419dc7e039a8953861df2a28fad639d12ae6b9
[PATCH] fix disk IO stats for 512-byte IOs

If you're peforming 512-byte sized IOs.  With, say,

dd of=/dev/raw/raw1 bs=512

then the `pgpgin' and `pgpgout' accounting just sits on zero.

This is because it counts in kbytes, and 512/1024 is zero.

So change it to count sectors, and divide that by two when we report it
to userspace.
drivers/block/ll_rw_blk.c
mm/page_alloc.c