hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/mm/memcontrol.c
....@@ -73,6 +73,7 @@
7373 EXPORT_SYMBOL(memory_cgrp_subsys);
7474
7575 struct mem_cgroup *root_mem_cgroup __read_mostly;
76
+EXPORT_SYMBOL_GPL(root_mem_cgroup);
7677
7778 /* Active memory cgroup to use from an interrupt context */
7879 DEFINE_PER_CPU(struct mem_cgroup *, int_active_memcg);
....@@ -858,6 +859,7 @@
858859 if (!mem_cgroup_disabled())
859860 __mod_memcg_lruvec_state(lruvec, idx, val);
860861 }
862
+EXPORT_SYMBOL_GPL(__mod_lruvec_state);
861863
862864 void __mod_lruvec_slab_state(void *p, enum node_stat_item idx, int val)
863865 {
....@@ -1442,6 +1444,7 @@
14421444 if (nr_pages > 0)
14431445 *lru_size += nr_pages;
14441446 }
1447
+EXPORT_SYMBOL_GPL(mem_cgroup_update_lru_size);
14451448
14461449 /**
14471450 * mem_cgroup_margin - calculate chargeable space of a memory cgroup
....@@ -3963,6 +3966,10 @@
39633966 {
39643967 struct mem_cgroup *memcg = mem_cgroup_from_css(css);
39653968
3969
+ pr_warn_once("Cgroup memory moving (move_charge_at_immigrate) is deprecated. "
3970
+ "Please report your usecase to linux-mm@kvack.org if you "
3971
+ "depend on this functionality.\n");
3972
+
39663973 if (val & ~MOVE_MASK)
39673974 return -EINVAL;
39683975
....@@ -4206,7 +4213,7 @@
42064213 {
42074214 struct mem_cgroup *memcg = mem_cgroup_from_css(css);
42084215
4209
- if (val > 100)
4216
+ if (val > 200)
42104217 return -EINVAL;
42114218
42124219 if (css->parent)