[PATCH 01/11] mm/zsmalloc: Rename zs_object_copy to zs_obj_copy

From: Joshua Hahn

Date: Wed Mar 11 2026 - 15:52:14 EST


All the zsmalloc functions that operate on a zsmalloc object (encoded
location values) are named "zs_obj_xxx", except for zs_object_copy.

Rename zs_object_copy to zs_obj_copy to conform to the pattern.
No functional changes intended.

Signed-off-by: Joshua Hahn <joshua.hahnjy@xxxxxxxxx>
---
mm/zsmalloc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index 2c1430bf8d57..7a9b8f55d529 100644
--- a/mm/zsmalloc.c
+++ b/mm/zsmalloc.c
@@ -1416,7 +1416,7 @@ void zs_free(struct zs_pool *pool, unsigned long handle)
}
EXPORT_SYMBOL_GPL(zs_free);

-static void zs_object_copy(struct size_class *class, unsigned long dst,
+static void zs_obj_copy(struct size_class *class, unsigned long dst,
unsigned long src)
{
struct zpdesc *s_zpdesc, *d_zpdesc;
@@ -1537,7 +1537,7 @@ static void migrate_zspage(struct zs_pool *pool, struct zspage *src_zspage,

used_obj = handle_to_obj(handle);
free_obj = obj_malloc(pool, dst_zspage, handle);
- zs_object_copy(class, free_obj, used_obj);
+ zs_obj_copy(class, free_obj, used_obj);
obj_idx++;
obj_free(class->size, used_obj);

--
2.52.0