Skip to contentSkip to conversation

balloon_compaction-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: balloon_compaction: update the NR_BALLOON_PAGES state
has been removed from the -mm tree. Its filename was
balloon_compaction-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: balloon_compaction: update the NR_BALLOON_PAGES state
Date: Fri, 14 Mar 2025 15:37:55 -0600

Update the NR_BALLOON_PAGES counter when pages are added or removed using the balloon compaction interface.

The virtio, Vmware, and pseries-cmm balloon drivers utilize the balloon_compaction interface to allocate and free balloon pages. Other balloon drivers will have to maintain this counter manually.

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]>

---

 mm/balloon_compaction.c |    2 ++
 1 file changed, 2 insertions(+)
mm/balloon_compaction.c renamed from mm/balloon_compaction.c~balloon_compaction-update-the-nr_balloon_pages-state +2 -0
@@ -24,6 +24,7 @@ static void balloon_page_enqueue_one(str
 	balloon_page_insert(b_dev_info, page);
 	unlock_page(page);
 	__count_vm_event(BALLOON_INFLATE);
+	inc_node_page_state(page, NR_BALLOON_PAGES);
 }
 
 /**
@@ -103,6 +104,7 @@ size_t balloon_page_list_dequeue(struct
 		__count_vm_event(BALLOON_DEFLATE);
 		list_add(&page->lru, pages);
 		unlock_page(page);
+		dec_node_page_state(page, NR_BALLOON_PAGES);
 		n_pages++;
 	}
 	spin_unlock_irqrestore(&b_dev_info->pages_lock, flags);

_

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