]> git.baikalelectronics.ru Git - kernel.git/commit
percpu: generalize bitmap (un)populated iterators
authorDennis Zhou (Facebook) <dennisszhou@gmail.com>
Mon, 24 Jul 2017 23:02:10 +0000 (19:02 -0400)
committerTejun Heo <tj@kernel.org>
Wed, 26 Jul 2017 14:23:53 +0000 (10:23 -0400)
commit983082e63f2daa3c22bbce8afaf0948c25ca4d83
treedb6c6ea3641569450508cb7a094b31764a79ec6b
parent3e9fe95d1ee7ad2a4caf882c95bc2ec7acc623ed
percpu: generalize bitmap (un)populated iterators

The area map allocator only used a bitmap for the backing page state.
The new bitmap allocator will use bitmaps to manage the allocation
region in addition to this.

This patch generalizes the bitmap iterators so they can be reused with
the bitmap allocator.

Signed-off-by: Dennis Zhou <dennisszhou@gmail.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
mm/percpu.c