]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tools: add more bitmap functions
authorMatthew Wilcox <willy@linux.intel.com>
Wed, 14 Dec 2016 23:08:26 +0000 (15:08 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Jun 2018 08:28:55 +0000 (10:28 +0200)
commit5828462fea805ed1c6666ab827cb9cdb88209990
tree588421ddba42a3fbe4c4152ecb61bc54e28c34e4
parent856bc9a0cb3a13c5dfd11f8a73ff1cd221778174
tools: add more bitmap functions

commit b328daf3b7130098b105c18bdae694ddaad5b6e3 upstream.

I need the following functions for the radix tree:

  bitmap_fill
  bitmap_empty
  bitmap_full

Copy the implementations from include/linux/bitmap.h

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Tested-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Konstantin Khlebnikov <koct9i@gmail.com>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: Matthew Wilcox <mawilcox@microsoft.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/include/linux/bitmap.h