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