diff options
author | Baoquan He <bhe@redhat.com> | 2022-10-25 05:45:16 +0200 |
---|---|---|
committer | Dennis Zhou <dennis@kernel.org> | 2022-11-08 07:59:12 +0100 |
commit | 73046f8d31701c379f6db899cb09ba70a3285143 (patch) | |
tree | 64a181641e3544167a02388136a70d30ab1faf46 /mm/balloon_compaction.c | |
parent | mm/percpu: Update the code comment when creating new chunk (diff) | |
download | linux-73046f8d31701c379f6db899cb09ba70a3285143.tar.xz linux-73046f8d31701c379f6db899cb09ba70a3285143.zip |
mm/percpu: add comment to state the empty populated pages accounting
When allocating an area from a chunk, pcpu_block_update_hint_alloc()
is called to update chunk metadata, including chunk's and global
nr_empty_pop_pages. However, if the allocation is not atomic, some
blocks may not be populated with pages yet, while we still subtract
the number here. The number of pages will be added back with
pcpu_chunk_populated() when populating pages.
Adding code comment to make that more understandable.
Signed-off-by: Baoquan He <bhe@redhat.com>
Signed-off-by: Dennis Zhou <dennis@kernel.org>
Diffstat (limited to 'mm/balloon_compaction.c')
0 files changed, 0 insertions, 0 deletions