]> 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>
Mon, 4 Nov 2024 17:52:57 +0000 (01:52 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 12 Nov 2024 01:22:26 +0000 (17:22 -0800)
commitda0c02516c501b43bd39ad4aca5779c86153d143
treefb6d62186590f2191f808c14432425a055ae10e1
parentfb56fdf8b9a2f7397f8a83dce50189f3f0cf71af
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/20241104175257.60853-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 (Oracle) <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