mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-17 20:54:10 +00:00
percpu: fix starting offset for chunk statistics traversal
This patch fixes the starting offset used when scanning chunks to compute the chunk statistics. The value start_offset (and end_offset) are managed in bytes while the traversal occurs over bits. Thus for the reserved and dynamic chunk, it may incorrectly skip over the initial allocations. Signed-off-by: Dennis Zhou <dennisszhou@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
e88d62cd4b
commit
2e08d20d77
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ static void chunk_map_stats(struct seq_file *m, struct pcpu_chunk *chunk,
|
|||
last_alloc + 1 : 0;
|
||||
|
||||
as_len = 0;
|
||||
start = chunk->start_offset;
|
||||
start = chunk->start_offset / PCPU_MIN_ALLOC_SIZE;
|
||||
|
||||
/*
|
||||
* If a bit is set in the allocation map, the bound_map identifies
|
||||
|
|
Loading…
Add table
Reference in a new issue