Re: [PATCH] frontswap: fix incorrect zeroing and allocation size for frontswap_map

2013-06-03 Thread Konrad Rzeszutek Wilk
On Sun, Jun 02, 2013 at 08:52:57AM +0900, Akinobu Mita wrote: > The bitmap accessed by bitops must have enough size to hold the required > numbers of bits rounded up to a multiple of BITS_PER_LONG. And the bitmap > must not be zeroed by memset() if the number of bits cleared is not > a multiple of

[PATCH] frontswap: fix incorrect zeroing and allocation size for frontswap_map

2013-06-01 Thread Akinobu Mita
The bitmap accessed by bitops must have enough size to hold the required numbers of bits rounded up to a multiple of BITS_PER_LONG. And the bitmap must not be zeroed by memset() if the number of bits cleared is not a multiple of BITS_PER_LONG. This fixes incorrect zeroing and allocation size for