[PATCH 0/3] correct the parameter type of some mm functions
From: Qi Zheng
Date: Tue Mar 24 2026 - 07:33:50 EST
From: Qi Zheng <zhengqi.arch@xxxxxxxxxxxxx>
Hi all,
As Harry Yoo pointed out [1], in the case of reparenting LRU folios, the value
passed to functions such as __mod_memcg{_lruvec}_state() may exceed the upper
limit of int, so this series aims to correct the parameter type of these
functions.
This series is based on the next-20260323.
Comments and suggestions are welcome!
Thanks,
Qi
[1]. https://lore.kernel.org/all/acDxaEgnqPI-Z4be@hyeyoo/
Qi Zheng (3):
mm: memcontrol: correct the type of stats_updates to unsigned long
mm: memcontrol: correct the parameter type of
__mod_memcg{_lruvec}_state()
mm: memcontrol: correct the nr_pages parameter type of
mem_cgroup_update_lru_size()
include/linux/memcontrol.h | 2 +-
include/trace/events/memcg.h | 10 +++++-----
mm/memcontrol.c | 28 ++++++++++++++--------------
3 files changed, 20 insertions(+), 20 deletions(-)
--
2.20.1