drbd: fix potential wrap of 32bit oos:%lu display in /proc/drbd
authorLars Ellenberg <lars.ellenberg@linbit.com>
Tue, 9 Nov 2010 13:12:10 +0000 (14:12 +0100)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 10 Mar 2011 10:19:04 +0000 (11:19 +0100)
When converting bits (4k resolution, still) to kB, we shift left.  If it
was a large number of bits on a 32bit box (>= 4 TiB storage), we may
wrap the 32bit unsigned long base type, resulting in incorrect display.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>

No differences found