mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-24 23:52:40 +00:00
percpu: remove has_reserved from pcpu_chunk
Prior this variable was used to manage statistics when the first chunk had a reserved region. The previous patch introduced start_offset to keep track of the offset by value rather than boolean. Therefore, has_reserved can be removed. Signed-off-by: Dennis Zhou <dennisszhou@gmail.com> Reviewed-by: Josef Bacik <jbacik@fb.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
e226670566
commit
4af1e6fbd8
3 changed files with 1 additions and 9 deletions
|
@ -23,11 +23,6 @@ struct pcpu_chunk {
|
|||
void *data; /* chunk data */
|
||||
int first_free; /* no free below this */
|
||||
bool immutable; /* no [de]population allowed */
|
||||
bool has_reserved; /* Indicates if chunk has reserved space
|
||||
at the beginning. Reserved chunk will
|
||||
contain reservation for static chunk.
|
||||
Dynamic chunk will contain reservation
|
||||
for static and reserved chunks. */
|
||||
int start_offset; /* the overlap with the previous
|
||||
region to have a page aligned
|
||||
base_addr */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue