]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
memcg-workingset-remove-folio_memcg_rcu-usage-fix
authorAndrew Morton <akpm@linux-foundation.org>
Mon, 28 Oct 2024 00:59:41 +0000 (17:59 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 1 Nov 2024 04:29:27 +0000 (21:29 -0700)
fix build: provide folio_memcg_charged stub for CONFIG_MEMCG=n

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Hugh Dickins <hughd@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Muchun Song <songmuchun@bytedance.com>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Shakeel Butt <shakeel.butt@linux.dev>
Cc: Yosry Ahmed <yosryahmed@google.com>
Cc: Yu Zhao <yuzhao@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/memcontrol.h

index 89a1e9f10e1bccad33137af214378955671d162b..5502aa8e138ec0c0f2a5af9eb5b489cc71604e4c 100644 (file)
@@ -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;