diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2025-03-14 16:36:14 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2025-03-22 08:03:12 +0300 |
commit | 8492936abb49eda26e00eab01e58d7e69f2355ba (patch) | |
tree | a102a255f777cf021b2115557347b23d197c3363 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 7cc57ecae40a68ff7204bca5e17a0241fe505ec7 (diff) | |
download | linux-8492936abb49eda26e00eab01e58d7e69f2355ba.tar.xz |
mm: simplify folio_memcg_charged()
There's no need to check which kind of pointer is in the memcg_data field,
all we actually care about is whether it's zero or not. Saves 70 bytes in
workingset_activation() with the Debian config.
Link: https://lkml.kernel.org/r/20250314133617.138071-5-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Shakeel Butt <shakeel.butt@linux.dev>
Acked-by: Roman Gushchin <roman.gushchin@linux.dev>
Cc: David Hildenbrand <david@redhat.com>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Zi Yan <ziy@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions