Skip to contentSkip to conversation

mm-page_counter-move-calculating-protection-values-to-page_counter.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jul 12, 2024

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm/page_counter: move calculating protection values to page_counter
has been removed from the -mm tree. Its filename was
mm-page_counter-move-calculating-protection-values-to-page_counter.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: Maarten Lankhorst <[email protected]>
Subject: mm/page_counter: move calculating protection values to page_counter
Date: Wed, 3 Jul 2024 13:25:10 +0200

It's a lot of math, and there is nothing memcontrol specific about it. This makes it easier to use inside of the drm cgroup controller.

---

 include/linux/page_counter.h |    4 
 mm/memcontrol.c              |  154 -----------------------------
 mm/page_counter.c            |  173 +++++++++++++++++++++++++++++++++
 3 files changed, 180 insertions(+), 151 deletions(-)
include/linux/page_counter.h renamed from include/linux/page_counter.h~mm-page_counter-move-calculating-protection-values-to-page_counter +4 -0
@@ -81,4 +81,8 @@ static inline void page_counter_reset_wa
 	counter->watermark = page_counter_read(counter);
 }
 
+void page_counter_calculate_protection(struct page_counter *root,
+				       struct page_counter *counter,
+				       bool recursive_protection);
+
 #endif /* _LINUX_PAGE_COUNTER_H */
mm/memcontrol.c renamed from mm/memcontrol.c~mm-page_counter-move-calculating-protection-values-to-page_counter +3 -151

172 lines not on this page · raw message

mm/page_counter.c renamed from mm/page_counter.c~mm-page_counter-move-calculating-protection-values-to-page_counter +173 -0

176 lines not on this page · raw message

_

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