Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

powerpc/pseries/cmm: adjust BALLOON_MIGRATE when migrating pages

Let's properly adjust BALLOON_MIGRATE like the other drivers.

Note that the INFLATE/DEFLATE events are triggered from the core when
enqueueing/dequeueing pages.

This was found by code inspection.

Link: https://lkml.kernel.org/r/20251021100606.148294-3-david@redhat.com
Fixes: fe030c9b85e6 ("powerpc/pseries/cmm: Implement balloon compaction")
Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: Madhavan Srinivasan <maddy@linux.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

David Hildenbrand and committed by
Andrew Morton
0da2ba35 fc6bcf9a

+1
+1
arch/powerpc/platforms/pseries/cmm.c
··· 532 532 533 533 spin_lock_irqsave(&b_dev_info->pages_lock, flags); 534 534 balloon_page_insert(b_dev_info, newpage); 535 + __count_vm_event(BALLOON_MIGRATE); 535 536 b_dev_info->isolated_pages--; 536 537 spin_unlock_irqrestore(&b_dev_info->pages_lock, flags); 537 538