Re: [PATCH 1/2] bitmap: new bitmap_copy_safe and bitmap_{from,to}_arr32

2018-01-08 Thread Yury Norov
On Tue, Jan 09, 2018 at 12:29:23AM +0100, Rasmus Villemoes wrote: > On 28 December 2017 at 16:00, Yury Norov wrote: > > > > In this patch, bitmap_copy_safe and bitmap_{from,to}_arr32 are introduced. > > > > 'Safe' in bitmap_copy_safe() stands for clearing unused bits in bitmap > > beyond last bit

Re: [PATCH 1/2] bitmap: new bitmap_copy_safe and bitmap_{from,to}_arr32

2018-01-08 Thread Rasmus Villemoes
On 28 December 2017 at 16:00, Yury Norov wrote: > > In this patch, bitmap_copy_safe and bitmap_{from,to}_arr32 are introduced. > > 'Safe' in bitmap_copy_safe() stands for clearing unused bits in bitmap > beyond last bit till the end of last word. It is useful for hardening > API when bitmap is ass

Re: [PATCH 1/2] bitmap: new bitmap_copy_safe and bitmap_{from,to}_arr32

2018-01-04 Thread Yury Norov
Hi Andy, Thanks for review. Comments inline. On Sun, Dec 31, 2017 at 02:34:42PM +0200, Andy Shevchenko wrote: > On Thu, Dec 28, 2017 at 5:00 PM, Yury Norov wrote: > > This patchset replaces bitmap_{to,from}_u32array with more simple > > and standard looking copy-like functions. > > > > bitmap_fr

Re: [PATCH 1/2] bitmap: new bitmap_copy_safe and bitmap_{from,to}_arr32

2017-12-31 Thread Andy Shevchenko
On Thu, Dec 28, 2017 at 5:00 PM, Yury Norov wrote: > This patchset replaces bitmap_{to,from}_u32array with more simple > and standard looking copy-like functions. > > bitmap_from_u32array() takes 4 arguments (bitmap_to_u32array is similar): > - unsigned long *bitmap, which is destination; > - un