From: Andrew Morton Date: Mon, 28 Oct 2024 00:59:41 +0000 (-0700) Subject: memcg-workingset-remove-folio_memcg_rcu-usage-fix X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=872b249a16594add731380c618bb4622beb56462;p=users%2Fjedix%2Flinux-maple.git memcg-workingset-remove-folio_memcg_rcu-usage-fix fix build: provide folio_memcg_charged stub for CONFIG_MEMCG=n Reported-by: Stephen Rothwell Cc: Hugh Dickins Cc: Johannes Weiner Cc: Michal Hocko Cc: Muchun Song Cc: Roman Gushchin Cc: Shakeel Butt Cc: Yosry Ahmed Cc: Yu Zhao Signed-off-by: Andrew Morton --- diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index 89a1e9f10e1b..5502aa8e138e 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h @@ -1055,6 +1055,11 @@ static inline struct mem_cgroup *folio_memcg(struct folio *folio) return NULL; } +static inline bool folio_memcg_charged(struct folio *folio) +{ + return false; +} + static inline struct mem_cgroup *folio_memcg_check(struct folio *folio) { return NULL;