From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AA3033D3332; Thu, 15 Jan 2026 17:58:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768499892; cv=none; b=jbX73Gb3x/gDzFHX9U0g3AF1FvN+BCFvOt1aSIx9wlg81luTtmRwmll1qrB7L6xZfmiP9lwbNtjvIIHS9y+ajvUHG9nfLXpS3snqvrTakLLNq1BMlGuFJ5uFfpC9+qppFduF3TJwHQE/oF4u3yoFt3+2hRFnKShdeytYWrPpDQ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768499892; c=relaxed/simple; bh=isC7FTbIM6aHoVlElYEJHnIpRGQIcI+COsgq/giPGfQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=i9wkcBN/DYrSQApmrrScqNc9gcYIei92t9jPBd/JY/+5/LrG4isPGt+0OsuFeiIaVnFqeSzPdRz4eTXZLYdD7zYGrKwpyRgenR1cQ8mZjqR/EskGn37FCXX5qfsN3gVnajddwVpfFm8LHLgjHRcv+68lBY0soygc5UYjdThedvU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Vc8CGpgh; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Vc8CGpgh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 38E46C116D0; Thu, 15 Jan 2026 17:58:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1768499892; bh=isC7FTbIM6aHoVlElYEJHnIpRGQIcI+COsgq/giPGfQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vc8CGpghW1WWcNV1Ii4vW+HL/yNoyV2Ewv8GJggknLL3zit4qfKMmcaNRFcv6nkYJ gsyh3NFOnBqHqPPe9NeXmtHXqpIw8JwFrYJFYos18Tn7dXchFQ/sgiU7cvNuH1gnsU Jro+yPmXZCR35a5HhsBVj0XucR28MkNp/YQGv5mk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, David Hildenbrand , "Ritesh Harjani (IBM)" , Christophe Leroy , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , Andrew Morton , Sasha Levin Subject: [PATCH 5.10 386/451] powerpc/pseries/cmm: adjust BALLOON_MIGRATE when migrating pages Date: Thu, 15 Jan 2026 17:49:47 +0100 Message-ID: <20260115164244.891632856@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260115164230.864985076@linuxfoundation.org> References: <20260115164230.864985076@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: David Hildenbrand [ Upstream commit 0da2ba35c0d532ca0fe7af698b17d74c4d084b9a ] 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 Reviewed-by: Ritesh Harjani (IBM) Cc: Christophe Leroy Cc: Madhavan Srinivasan Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Signed-off-by: Andrew Morton Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/platforms/pseries/cmm.c | 1 + 1 file changed, 1 insertion(+) --- a/arch/powerpc/platforms/pseries/cmm.c +++ b/arch/powerpc/platforms/pseries/cmm.c @@ -550,6 +550,7 @@ static int cmm_migratepage(struct balloo spin_lock_irqsave(&b_dev_info->pages_lock, flags); balloon_page_insert(b_dev_info, newpage); + __count_vm_event(BALLOON_MIGRATE); b_dev_info->isolated_pages--; spin_unlock_irqrestore(&b_dev_info->pages_lock, flags);