• Andrew Morton's avatar
    [PATCH] fix disk IO stats for 512-byte IOs · 12c26749
    Andrew Morton authored
    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.
    12c26749
ll_rw_blk.c 54.5 KB