[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241119072057.3440039-8-senozhatsky@chromium.org>
Date: Tue, 19 Nov 2024 16:20:45 +0900
From: Sergey Senozhatsky <senozhatsky@...omium.org>
To: Andrew Morton <akpm@...ux-foundation.org>,
Minchan Kim <minchan@...nel.org>
Cc: linux-kernel@...r.kernel.org,
Sergey Senozhatsky <senozhatsky@...omium.org>
Subject: [PATCHv1 7/8] zsmalloc: move ZS_HANDLE_SIZE to zsmalloc header
It will be used in object's split size calculations.
Signed-off-by: Sergey Senozhatsky <senozhatsky@...omium.org>
---
include/linux/zsmalloc.h | 2 ++
mm/zsmalloc.c | 2 --
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/linux/zsmalloc.h b/include/linux/zsmalloc.h
index a48cd0ffe57d..c17803da7f18 100644
--- a/include/linux/zsmalloc.h
+++ b/include/linux/zsmalloc.h
@@ -16,6 +16,8 @@
#include <linux/types.h>
+#define ZS_HANDLE_SIZE (sizeof(unsigned long))
+
/*
* zsmalloc mapping modes
*
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index 64b66a4d3e6e..466d5f49eb91 100644
--- a/mm/zsmalloc.c
+++ b/mm/zsmalloc.c
@@ -78,8 +78,6 @@
*/
#define ZS_ALIGN 8
-#define ZS_HANDLE_SIZE (sizeof(unsigned long))
-
/*
* Object location (<PFN>, <obj_idx>) is encoded as
* a single (unsigned long) handle value.
--
2.47.0.371.ga323438b13-goog
Powered by blists - more mailing lists