]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - mm/percpu-internal.h
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)
commit86b442fbce74d6cd0805410ef228776cbd0338d7
tree1d1fb3282d54d73cc47c0ba7f8a09a9050db23ae
parentca460b3c96274d79f84b31a3fea23a6eed479917
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