It will be used in object's split size calculations.
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.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