The patch titled Subject: zsmalloc-introduce-zs_huge_class_size-function-v3 has been added to the -mm tree. Its filename is zsmalloc-introduce-zs_huge_class_size-function-v3.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/zsmalloc-introduce-zs_huge_class_size-function-v3.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/zsmalloc-introduce-zs_huge_class_size-function-v3.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Sergey Senozhatsky <sergey.senozhatsky.work@xxxxxxxxx> Subject: zsmalloc-introduce-zs_huge_class_size-function-v3 add pool param to zs_huge_class_size() (Minchan) Link: http://lkml.kernel.org/r/20180314081833.1096-2-sergey.senozhatsky@xxxxxxxxx Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@xxxxxxxxx> Cc: Minchan Kim <minchan@xxxxxxxxxx> Cc: Mike Rapoport <rppt@xxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/zsmalloc.h | 2 +- mm/zsmalloc.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff -puN include/linux/zsmalloc.h~zsmalloc-introduce-zs_huge_class_size-function-v3 include/linux/zsmalloc.h --- a/include/linux/zsmalloc.h~zsmalloc-introduce-zs_huge_class_size-function-v3 +++ a/include/linux/zsmalloc.h @@ -47,7 +47,7 @@ void zs_destroy_pool(struct zs_pool *poo unsigned long zs_malloc(struct zs_pool *pool, size_t size, gfp_t flags); void zs_free(struct zs_pool *pool, unsigned long obj); -size_t zs_huge_class_size(void); +size_t zs_huge_class_size(struct zs_pool *pool); void *zs_map_object(struct zs_pool *pool, unsigned long handle, enum zs_mapmode mm); diff -puN mm/zsmalloc.c~zsmalloc-introduce-zs_huge_class_size-function-v3 mm/zsmalloc.c --- a/mm/zsmalloc.c~zsmalloc-introduce-zs_huge_class_size-function-v3 +++ a/mm/zsmalloc.c @@ -1410,6 +1410,7 @@ EXPORT_SYMBOL_GPL(zs_unmap_object); /** * zs_huge_class_size() - Returns the size (in bytes) of the first huge * zsmalloc &size_class. + * @pool: zsmalloc pool to use * * The function returns the size of the first huge class - any object of equal * or bigger size will be stored in zspage consisting of a single physical @@ -1419,7 +1420,7 @@ EXPORT_SYMBOL_GPL(zs_unmap_object); * * Return: the size (in bytes) of the first huge zsmalloc &size_class. */ -size_t zs_huge_class_size(void) +size_t zs_huge_class_size(struct zs_pool *pool) { return huge_class_size; } _ Patches currently in -mm which might be from sergey.senozhatsky.work@xxxxxxxxx are zsmalloc-introduce-zs_huge_class_size-function.patch zsmalloc-introduce-zs_huge_class_size-function-v3.patch zram-drop-max_zpage_size-and-use-zs_huge_class_size.patch zram-drop-max_zpage_size-and-use-zs_huge_class_size-v3.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html