memcg: cleanup __mod_memcg_lruvec_state
authorShakeel Butt <shakeel.butt@linux.dev>
Wed, 1 May 2024 17:26:14 +0000 (10:26 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 7 May 2024 17:36:59 +0000 (10:36 -0700)
There are no memcg specific stats for NR_SHMEM_PMDMAPPED and
NR_FILE_PMDMAPPED.  Let's remove them.

Link: https://lkml.kernel.org/r/20240501172617.678560-6-shakeel.butt@linux.dev
Signed-off-by: Shakeel Butt <shakeel.butt@linux.dev>
Reviewed-by: Yosry Ahmed <yosryahmed@google.com>
Reviewed-by: Roman Gushchin <roman.gushchin@linux.dev>
Reviewed-by: T.J. Mercier <tjmercier@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Muchun Song <muchun.song@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c

index 0dad17d26ce2c678c1859812b732ce69aa111c94..b59b670f7b7f908a91a728bf9a4660e2b562a14b 100644 (file)
@@ -1009,8 +1009,6 @@ static void __mod_memcg_lruvec_state(struct lruvec *lruvec,
                case NR_ANON_MAPPED:
                case NR_FILE_MAPPED:
                case NR_ANON_THPS:
-               case NR_SHMEM_PMDMAPPED:
-               case NR_FILE_PMDMAPPED:
                        WARN_ON_ONCE(!in_task());
                        break;
                default: