]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: vmscan: rework move_pages_to_lru()
authorMuchun Song <songmuchun@bytedance.com>
Tue, 21 Jun 2022 12:56:52 +0000 (20:56 +0800)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 20 Jul 2022 00:15:10 +0000 (20:15 -0400)
commit3c955dbe82723f45f4f4159b5f101fd0a4bb87f4
treed471f21f24b3ebda9b8ec2d22e7099f8101d7ce2
parenta4d1f3b68e7fe6ecb1a33d38d1410fda734a7afc
mm: vmscan: rework move_pages_to_lru()

In a later patch, we will reparent the LRU pages.  The pages moved to
appropriate LRU list can be reparented during the process of the
move_pages_to_lru().  So holding a lruvec lock by the caller is wrong, we
should use the more general interface of folio_lruvec_relock_irq() to
acquire the correct lruvec lock.

Link: https://lkml.kernel.org/r/20220621125658.64935-6-songmuchun@bytedance.com
Signed-off-by: Muchun Song <songmuchun@bytedance.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Michal Koutný <mkoutny@suse.com>
Cc: Shakeel Butt <shakeelb@google.com>
Cc: Waiman Long <longman@redhat.com>
Cc: Xiongchun Duan <duanxiongchun@bytedance.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmscan.c