Re: Re: [PATCH] bitmap: Add bitmap_valloc(), bitmap_vzalloc() and bitmap_vfree()

2018-12-28 Thread 王鹏
@arndb.de, cour...@google.com, osan...@fb.com, > linux-kernel@vger.kernel.org > Subject: Re: [PATCH] bitmap: Add bitmap_valloc(), bitmap_vzalloc() and > bitmap_vfree() > > On Fri, 28 Dec 2018 00:18:29 +0800 Peng Wang wrote: > > > Introduce bitmap alloc/free helpers when contigu

Re: [PATCH] bitmap: Add bitmap_valloc(), bitmap_vzalloc() and bitmap_vfree()

2018-12-28 Thread Andrew Morton
On Fri, 28 Dec 2018 00:18:29 +0800 Peng Wang wrote: > Introduce bitmap alloc/free helpers when contiguous > memory is not necessary. That's a large bitmap you have there. What code needs this?

[PATCH] bitmap: Add bitmap_valloc(), bitmap_vzalloc() and bitmap_vfree()

2018-12-27 Thread Peng Wang
Introduce bitmap alloc/free helpers when contiguous memory is not necessary. Signed-off-by: Peng Wang --- include/linux/bitmap.h | 3 +++ lib/bitmap.c | 19 +++ 2 files changed, 22 insertions(+) diff --git a/include/linux/bitmap.h b/include/linux/bitmap.h index