mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Reviewed-by: Josef Bacik <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
This commit is contained in:
parent
ca460b3c96
commit
86b442fbce
3 changed files with 17 additions and 3 deletions
|
|
@ -36,7 +36,7 @@ struct pcpu_chunk {
|
|||
struct pcpu_block_md *md_blocks; /* metadata blocks */
|
||||
|
||||
void *data; /* chunk data */
|
||||
int first_free; /* no free below this */
|
||||
int first_bit; /* no free below this */
|
||||
bool immutable; /* no [de]population allowed */
|
||||
int start_offset; /* the overlap with the previous
|
||||
region to have a page aligned
|
||||
|
|
|
|||
Loading…
Reference in a new issue