]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/list_lru: simplify the list_lru walk callback function
authorKairui Song <kasong@tencent.com>
Wed, 25 Sep 2024 17:10:20 +0000 (01:10 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 1 Nov 2024 04:28:46 +0000 (21:28 -0700)
commit5af734e957b635730464d0ece985e2d3ae81dbf0
treeb67fef5e3a23bcad9a82ec5b9b656e64fe834dfb
parentee5b3b4cc73deedc807446c7780ed66f9f0662e5
mm/list_lru: simplify the list_lru walk callback function

Now isolation no longer takes the list_lru global node lock, only use the
per-cgroup lock instead.  And this lock is inside the list_lru_one being
walked, no longer needed to pass the lock explicitly.

Link: https://lkml.kernel.org/r/20240925171020.32142-7-ryncsn@gmail.com
Signed-off-by: Kairui Song <kasong@tencent.com>
Cc: Chengming Zhou <zhouchengming@bytedance.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Qi Zheng <zhengqi.arch@bytedance.com>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Shakeel Butt <shakeel.butt@linux.dev>
Cc: Waiman Long <longman@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
13 files changed:
drivers/android/binder_alloc.c
drivers/android/binder_alloc.h
fs/dcache.c
fs/gfs2/quota.c
fs/inode.c
fs/nfs/nfs42xattr.c
fs/nfsd/filecache.c
fs/xfs/xfs_buf.c
fs/xfs/xfs_qm.c
include/linux/list_lru.h
mm/list_lru.c
mm/workingset.c
mm/zswap.c