mm-memcontrol-constify-the-reclaim-protection-helpers.patch removed from -mm tree
The quilt patch titled
Subject: mm: memcontrol: constify the reclaim protection helpers
has been removed from the -mm tree. Its filename was
mm-memcontrol-constify-the-reclaim-protection-helpers.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: Tal Zussman <[email protected]>
Subject: mm: memcontrol: constify the reclaim protection helpers
Date: Tue, 15 Sep 2026 19:20:11 -0400
mem_cgroup_protection(), mem_cgroup_unprotected(), mem_cgroup_below_low(), and mem_cgroup_below_min() only read the protection state. Constify them.
Signed-off-by Tal Zussman <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
Acked-by Muchun Song <[email protected]>
Acked-by Shakeel Butt <[email protected]>
Cc Axel Rasmussen <[email protected]>
Cc Baolin Wang <[email protected]>
Cc Baoquan He <[email protected]>
Cc Barry Song <[email protected]>
Cc Chris Li <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc Johannes Weiner <[email protected]>
Cc Kairui Song <[email protected]>
Cc Kemeng Shi <[email protected]>
Cc Liam R. Howlett <[email protected]>
Cc Matthew Wilcox (Oracle) <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Mike Rapoport <[email protected]>
Cc Nhat Pham <[email protected]>
Cc Roman Gushchin <[email protected]>
Cc Suren Baghdasaryan <[email protected]>
Cc Vlastimil Babka <[email protected]>
Cc Wei Xu <[email protected]>
Cc Yuanchu Xie <[email protected]>
---
include/linux/memcontrol.h | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-)
include/linux/memcontrol.h renamed from include/linux/memcontrol.h~mm-memcontrol-constify-the-reclaim-protection-helpers +16 -16
@@ -570,8 +570,8 @@ static inline bool mem_cgroup_disabled(vreturn !cgroup_subsys_enabled (memory_cgrp_subsys); } -static inline void mem_cgroup_protection (struct mem_cgroup *root, -struct mem_cgroup *memcg, +static inline void mem_cgroup_protection (const struct mem_cgroup *root, +const struct mem_cgroup *memcg,unsigned long *min,unsigned long *low,unsigned long *usage)
@@ -625,8 +625,8 @@ static inline void mem_cgroup_protectionvoid mem_cgroup_calculate_protection (struct mem_cgroup *root,struct mem_cgroup *memcg); -static inline bool mem_cgroup_unprotected (struct mem_cgroup *target, -struct mem_cgroup *memcg) +static inline bool mem_cgroup_unprotected (const struct mem_cgroup *target, +const struct mem_cgroup *memcg) {/* * The root memcg doesn't account charges, and doesn't support
@@ -637,8 +637,8 @@ static inline bool mem_cgroup_unprotecte memcg == target; } -static inline bool mem_cgroup_below_low (struct mem_cgroup *target, -struct mem_cgroup *memcg) +static inline bool mem_cgroup_below_low (const struct mem_cgroup *target, +const struct mem_cgroup *memcg) {if (mem_cgroup_unprotected (target, memcg))return false;
@@ -647,8 +647,8 @@ static inline bool mem_cgroup_below_low(page_counter_read (&memcg->memory); } -static inline bool mem_cgroup_below_min (struct mem_cgroup *target, -struct mem_cgroup *memcg) +static inline bool mem_cgroup_below_min (const struct mem_cgroup *target, +const struct mem_cgroup *memcg) {if (mem_cgroup_unprotected (target, memcg))return false;
@@ -1149,8 +1149,8 @@ static inline void memcg_memory_event_mm { } -static inline void mem_cgroup_protection (struct mem_cgroup *root, -struct mem_cgroup *memcg, +static inline void mem_cgroup_protection (const struct mem_cgroup *root, +const struct mem_cgroup *memcg,unsigned long *min,unsigned long *low,unsigned long *usage)
@@ -1163,19 +1163,19 @@ static inline void mem_cgroup_calculate_ { } -static inline bool mem_cgroup_unprotected (struct mem_cgroup *target, -struct mem_cgroup *memcg) +static inline bool mem_cgroup_unprotected (const struct mem_cgroup *target, +const struct mem_cgroup *memcg) {return true; } -static inline bool mem_cgroup_below_low (struct mem_cgroup *target, -struct mem_cgroup *memcg) +static inline bool mem_cgroup_below_low (const struct mem_cgroup *target, +const struct mem_cgroup *memcg) {return false; } -static inline bool mem_cgroup_below_min (struct mem_cgroup *target, -struct mem_cgroup *memcg) +static inline bool mem_cgroup_below_min (const struct mem_cgroup *target, +const struct mem_cgroup *memcg) {return false; }
_
Patches currently in -mm which might be from [email protected] are