diff options
| author | Joonwon Kang <joonwonkang@google.com> | 2026-05-13 08:51:13 +0000 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-05-28 21:31:59 -0700 |
| commit | 7a7ef76062e1e82d2a35c650f95a6656d1c38a0c (patch) | |
| tree | 7f0e20a467f38cf6562cfae7666f99e9be332926 /mm | |
| parent | 29cdf3bb9cd165136fd0c3a06d901a4c8d80b6b3 (diff) | |
| download | linux-next-history-7a7ef76062e1e82d2a35c650f95a6656d1c38a0c.tar.gz | |
percpu: fix wrong chunk hints update
Chunk end offset was set to a block end offset, which could prevent chunk
hints from being updated correctly. It was observed that the chunk free
size gets minus or shorter than the actual free size due to this. This
commit fixes it.
Link: https://lore.kernel.org/20260513085117.1024175-1-joonwonkang@google.com
Fixes: 92c14cab4326 ("percpu: convert chunk hints to be based on pcpu_block_md")
Signed-off-by: Joonwon Kang <joonwonkang@google.com>
Reviewed-by: Dennis Zhou <dennis@kernel.org>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm')
| -rw-r--r-- | mm/percpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/percpu.c b/mm/percpu.c index b0676b8054ed0..7c508cb3072fe 100644 --- a/mm/percpu.c +++ b/mm/percpu.c @@ -1054,7 +1054,7 @@ static void pcpu_block_update_hint_free(struct pcpu_chunk *chunk, int bit_off, else pcpu_block_update(&chunk->chunk_md, pcpu_block_off_to_off(s_index, start), - end); + pcpu_block_off_to_off(e_index, end)); } /** |
