> balloon_page_migrate() doesn't update NR_BALLOON_PAGES in two scenarios:
> 
>  (1) If the new page is on a different node than the old page.
> 
>  (2) If the old page was deflated but the new page could not be
>      inflated, effectively deflating the balloon.
> 
> Consequently the "Balloon" values in /proc/meminfo, the per-node meminfo
> etc. will be wrong.
> 
> Fix it by adjusting the "Balloon" counters accordingly just after
> conditionally adjusting the manage page counts.
> 
> This has low urgency.
> 
> Fixes: 4d689474e1b2 ("balloon_compaction: update the NR_BALLOON_PAGES state")
> Cc: [email protected]
> Reported-by: Shao Mingyin <[email protected]>
> Closes: 
> https://lore.kernel.org/r/[email protected]
> Signed-off-by: David Hildenbrand (Arm) <[email protected]>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review ยท 
https://sashiko.dev/#/patchset/[email protected]?part=1


Reply via email to