The patch titled Subject: mm/memcontrol.c: remove unused private flag of memory.oom_control has been added to the -mm tree. Its filename is mm-memcontrolc-remove-unused-private-flag-of-memoryoom_control.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/mm-memcontrolc-remove-unused-private-flag-of-memoryoom_control.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/mm-memcontrolc-remove-unused-private-flag-of-memoryoom_control.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Lu Jialin <lujialin4@xxxxxxxxxx> Subject: mm/memcontrol.c: remove unused private flag of memory.oom_control There is no use for the private value, __OOM_TYPE and OOM notifier OOM_CONTROL. Therefore remove them to make the code clean. Link: https://lkml.kernel.org/r/20220421122755.40899-1-lujialin4@xxxxxxxxxx Signed-off-by: Lu Jialin <lujialin4@xxxxxxxxxx> Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx> Acked-by: Shakeel Butt <shakeelb@xxxxxxxxxx> Acked-by: Roman Gushchin <roman.gushchin@xxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memcontrol.c | 4 ---- 1 file changed, 4 deletions(-) --- a/mm/memcontrol.c~mm-memcontrolc-remove-unused-private-flag-of-memoryoom_control +++ a/mm/memcontrol.c @@ -210,7 +210,6 @@ static struct move_charge_struct { enum res_type { _MEM, _MEMSWAP, - _OOM_TYPE, _KMEM, _TCP, }; @@ -218,8 +217,6 @@ enum res_type { #define MEMFILE_PRIVATE(x, val) ((x) << 16 | (val)) #define MEMFILE_TYPE(val) ((val) >> 16 & 0xffff) #define MEMFILE_ATTR(val) ((val) & 0xffff) -/* Used for OOM notifier */ -#define OOM_CONTROL (0) /* * Iteration constructs for visiting all cgroups (under a tree). If @@ -4888,7 +4885,6 @@ static struct cftype mem_cgroup_legacy_f .name = "oom_control", .seq_show = mem_cgroup_oom_control_read, .write_u64 = mem_cgroup_oom_control_write, - .private = MEMFILE_PRIVATE(_OOM_TYPE, OOM_CONTROL), }, { .name = "pressure_level", _ Patches currently in -mm which might be from lujialin4@xxxxxxxxxx are mm-memcontrolc-make-cgroup_memory_noswap-static.patch mm-memcontrolc-remove-unused-private-flag-of-memoryoom_control.patch