memcg-v1: remove memcg move locking code
authorShakeel Butt <shakeel.butt@linux.dev>
Fri, 25 Oct 2024 01:23:03 +0000 (18:23 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 7 Nov 2024 04:11:19 +0000 (20:11 -0800)
commita29c0e4b2e867f4e362a6740c430bfdc2efdd1d9
tree25406c83b880791fe6b036c4efaff331ccd329e3
parentcf4a65539c136d78d1b3b20e94caeecb616ea9d9
memcg-v1: remove memcg move locking code

The memcg v1's charge move feature has been deprecated.  All the places
using the memcg move lock, have stopped using it as they don't need the
protection any more.  Let's proceed to remove all the locking code related
to charge moving.

Link: https://lkml.kernel.org/r/20241025012304.2473312-7-shakeel.butt@linux.dev
Signed-off-by: Shakeel Butt <shakeel.butt@linux.dev>
Acked-by: Michal Hocko <mhocko@suse.com>
Reviewed-by: Roman Gushchin <roman.gushchin@linux.dev>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Hugh Dickins <hughd@google.com>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Yosry Ahmed <yosryahmed@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/memcontrol.h
mm/filemap.c
mm/memcontrol-v1.c
mm/memcontrol.c
mm/rmap.c