Skip to contentSkip to conversation

xen-balloon-update-the-nr_balloon_pages-state.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Mar 22, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: xen: balloon: update the NR_BALLOON_PAGES state
has been removed from the -mm tree. Its filename was
xen-balloon-update-the-nr_balloon_pages-state.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Nico Pache <[email protected]>
Subject: xen: balloon: update the NR_BALLOON_PAGES state
Date: Fri, 14 Mar 2025 15:37:57 -0600

Update the NR_BALLOON_PAGES counter when pages are added to or removed from the Xen balloon.

Cc Alexander Atanasov <[email protected]>
Cc Chengming Zhou <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc Dexuan Cui <[email protected]>
Cc Haiyang Zhang <[email protected]>
Cc Johannes Weiner <[email protected]>
Cc Juegren Gross <[email protected]>
Cc Kanchana P Sridhar <[email protected]>
Cc K. Y. Srinivasan <[email protected]>
Cc "Michael S. Tsirkin" <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Muchun Song <[email protected]>
Cc Nhat Pham <[email protected]>
Cc Oleksandr Tyshchenko <[email protected]>
Cc Roman Gushchin <[email protected]>
Cc Shakeel Butt <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Wei Liu <[email protected]>
Cc Michael Kelley <[email protected]>

---

 drivers/xen/balloon.c |    4 ++++
 1 file changed, 4 insertions(+)
drivers/xen/balloon.c renamed from drivers/xen/balloon.c~xen-balloon-update-the-nr_balloon_pages-state +4 -0
@@ -157,6 +157,8 @@ static void balloon_append(struct page *
 		list_add(&page->lru, &ballooned_pages);
 		balloon_stats.balloon_low++;
 	}
+	inc_node_page_state(page, NR_BALLOON_PAGES);
+
 	wake_up(&balloon_wq);
 }
 
@@ -179,6 +181,8 @@ static struct page *balloon_retrieve(boo
 		balloon_stats.balloon_low--;
 
 	__ClearPageOffline(page);
+	dec_node_page_state(page, NR_BALLOON_PAGES);
+
 	return page;
 }
 

_

Patches currently in -mm which might be from [email protected] are