OSDN Git Service

mm: rmap: remove lock_page_memcg()
authorJohannes Weiner <hannes@cmpxchg.org>
Tue, 6 Dec 2022 17:13:40 +0000 (18:13 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 19 Jan 2023 01:12:42 +0000 (17:12 -0800)
commitc7c3dec1c9db9746912af2bbb5d6a2dd9f152d20
tree9440f350158a3e0e48689e9c04c379f612e6e195
parent4e0cf05f60590c4119c2eeacf136d1b832978370
mm: rmap: remove lock_page_memcg()

The previous patch made sure charge moving only touches pages for which
page_mapped() is stable.  lock_page_memcg() is no longer needed.

Link: https://lkml.kernel.org/r/20221206171340.139790-3-hannes@cmpxchg.org
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Hugh Dickins <hughd@google.com>
Acked-by: Shakeel Butt <shakeelb@google.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Muchun Song <songmuchun@bytedance.com>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/rmap.c