]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Remove the (unsigned long long) cast in diskstats_show() and adjusts the
authorHerbert Poetzl <herbert@13thfloor.at>
Tue, 26 Jul 2011 10:14:49 +0000 (20:14 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 1 Aug 2011 03:36:34 +0000 (13:36 +1000)
commit1248718c9c37b8c860dfc09c41460d6902424fe1
treebd1120cd211fa519414a93d262816cc0a3ea6824
parent6b9218fce360a9fbdbd33f07a9d54d1cf7fb8cca
Remove the (unsigned long long) cast in diskstats_show() and adjusts the
seq_printf() format string to 'unsigned long'

diskstats_show() uses part_stat_read() to get the stats, which either
accesses the specified field in the struct disk_stats directly (non SMP)
or sums up the per CPU values in a variable of the same type as the field,
so in any case the result will have the same type and range as the
specified field which for all disk_stats entries is unsigned long

Also, for unsigned long ranges the output of %lu should be identical to
the one of %llu, so no change in the actual proc entry contents.

Signed-off-by: Herbert Poetzl <herbert@13thfloor.at>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
block/genhd.c