mm: zsmalloc: remove object mapping APIs and per-CPU map areas
authorYosry Ahmed <yosry.ahmed@linux.dev>
Wed, 5 Mar 2025 06:11:32 +0000 (06:11 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 17 Mar 2025 07:05:41 +0000 (00:05 -0700)
commit07864f1a57fb1f798a7d21f13e4929c9cb52daf7
tree32d73838256a52946c991e2588a31298aecfbb71
parentfcbea574754c63f7035d0c4ef7dfb161b60b5bde
mm: zsmalloc: remove object mapping APIs and per-CPU map areas

zs_map_object() and zs_unmap_object() are no longer used, remove them.
Since these are the only users of per-CPU mapping_areas, remove them and
the associated CPU hotplug callbacks too.

[yosry.ahmed@linux.dev: update the docs]
Link: https://lkml.kernel.org/r/Z8ier-ZZp8T6MOTH@google.com
Link: https://lkml.kernel.org/r/20250305061134.4105762-5-yosry.ahmed@linux.dev
Signed-off-by: Yosry Ahmed <yosry.ahmed@linux.dev>
Acked-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Nhat Pham <nphamcs@gmail.com>
Cc: Chengming Zhou <chengming.zhou@linux.dev>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/mm/zsmalloc.rst
include/linux/cpuhotplug.h
include/linux/zsmalloc.h
mm/zsmalloc.c