]> git.baikalelectronics.ru Git - kernel.git/commit
percpu: add first_bit to keep track of the first free in the bitmap
authorDennis Zhou (Facebook) <dennisszhou@gmail.com>
Mon, 24 Jul 2017 23:02:13 +0000 (19:02 -0400)
committerTejun Heo <tj@kernel.org>
Wed, 26 Jul 2017 21:41:05 +0000 (17:41 -0400)
commit434630d28acd8da3a68c1364496672a4c9ecf96d
tree1d1fb3282d54d73cc47c0ba7f8a09a9050db23ae
parentb1e888d24cb5b53c53156365bc517a9ba63b3dee
percpu: add first_bit to keep track of the first free in the bitmap

This patch adds first_bit to keep track of the first free bit in the
bitmap. This hint helps prevent scanning of fully allocated blocks.

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-internal.h
mm/percpu-stats.c
mm/percpu.c