mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
memcg: cleanup __mod_memcg_lruvec_state
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>
This commit is contained in:
parent
ff48c71c26
commit
0667c7870a
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user