diff options
author | Dennis Zhou (Facebook) <dennisszhou@gmail.com> | 2017-07-25 02:02:13 +0300 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2017-07-27 00:41:05 +0300 |
commit | 86b442fbce74d6cd0805410ef228776cbd0338d7 (patch) | |
tree | 1d1fb3282d54d73cc47c0ba7f8a09a9050db23ae /mm/percpu-internal.h | |
parent | ca460b3c96274d79f84b31a3fea23a6eed479917 (diff) | |
download | linux-86b442fbce74d6cd0805410ef228776cbd0338d7.tar.xz |
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>
Diffstat (limited to 'mm/percpu-internal.h')
-rw-r--r-- | mm/percpu-internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/percpu-internal.h b/mm/percpu-internal.h index 252ae9e960e0..e60e04966d96 100644 --- a/mm/percpu-internal.h +++ b/mm/percpu-internal.h @@ -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 |