| From: Andrew Morton <akpm@linux-foundation.org> |
| Subject: mm-memcg-make-memoryreclaim-interface-generic-fix |
| Date: Tue Jun 24 02:08:06 PM PDT 2025 |
| |
| fix CONFIG_NUMA=n build |
| |
| Reported-by: kernel test robot <lkp@intel.com> |
| Closes: https://lore.kernel.org/oe-kbuild-all/202506250208.ZOcoZLb6-lkp@intel.com/ |
| Cc: Davidlohr Bueso <dave@stgolabs.net> |
| Cc: Johannes Weiner <hannes@cmpxchg.org> |
| Cc: Michal Hocko <mhocko@kernel.org> |
| Cc: Roman Gushchin <roman.gushchin@linux.dev> |
| Cc: Shakeel Butt <shakeel.butt@linux.dev> |
| Cc: Yosry Ahmed <yosryahmed@google.com> |
| Signed-off-by: Andrew Morton <akpm@linux-foundation.org> |
| --- |
| |
| mm/internal.h | 8 ++++++++ |
| 1 file changed, 8 insertions(+) |
| |
| --- a/mm/internal.h~mm-memcg-make-memoryreclaim-interface-generic-fix |
| +++ a/mm/internal.h |
| @@ -533,8 +533,16 @@ extern unsigned long highest_memmap_pfn; |
| bool folio_isolate_lru(struct folio *folio); |
| void folio_putback_lru(struct folio *folio); |
| extern void reclaim_throttle(pg_data_t *pgdat, enum vmscan_throttle_state reason); |
| +#ifdef CONFIG_NUMA |
| int user_proactive_reclaim(char *buf, |
| struct mem_cgroup *memcg, pg_data_t *pgdat); |
| +#else |
| +static inline int user_proactive_reclaim(char *buf, |
| + struct mem_cgroup *memcg, pg_data_t *pgdat) |
| +{ |
| + return 0; |
| +} |
| +#endif |
| |
| /* |
| * in mm/rmap.c: |
| _ |