[PATCH] drbd: use bitmap_weight()

2015-03-22 Thread Akinobu Mita
Use bitmap_weight to count the total number of bits set in bitmap. This change just simplifies the code a bit. Signed-off-by: Akinobu Mita Cc: Philipp Reisner Cc: Lars Ellenberg Cc: drbd-...@lists.linbit.com --- drivers/block/drbd/drbd_bitmap.c | 13 + 1 file changed, 5 insertions(

Re: [Drbd-dev] [PATCH] drbd: use bitmap_weight()

2015-03-21 Thread Akinobu Mita
2015-03-21 0:14 GMT+09:00 Lars Ellenberg : > On Sat, Mar 14, 2015 at 10:12:56AM +0900, Akinobu Mita wrote: >> Use bitmap_weight to count the total number of bits set in bitmap. >> This change just simplifies the code a bit. > > "Simplifies", not sure about that, but ok, maybe. > > For the "bm_set_f

Re: [Drbd-dev] [PATCH] drbd: use bitmap_weight()

2015-03-20 Thread Lars Ellenberg
On Sat, Mar 14, 2015 at 10:12:56AM +0900, Akinobu Mita wrote: > Use bitmap_weight to count the total number of bits set in bitmap. > This change just simplifies the code a bit. "Simplifies", not sure about that, but ok, maybe. For the "bm_set_full_words_within_one_page", I disagree. I think it is

[PATCH] drbd: use bitmap_weight()

2015-03-13 Thread Akinobu Mita
Use bitmap_weight to count the total number of bits set in bitmap. This change just simplifies the code a bit. Signed-off-by: Akinobu Mita Cc: Philipp Reisner Cc: Lars Ellenberg Cc: drbd-...@lists.linbit.com --- drivers/block/drbd/drbd_bitmap.c | 26 ++ 1 file changed,