The patch titled Subject: mm/zsmalloc: allocate exactly size of struct zs_pool has been removed from the -mm tree. Its filename was mm-zsmalloc-allocate-exactly-size-of-struct-zs_pool.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Ganesh Mahendran <opensource.ganesh@xxxxxxxxx> Subject: mm/zsmalloc: allocate exactly size of struct zs_pool In zs_create_pool(), we allocate memory more then sizeof(struct zs_pool) ovhd_size = roundup(sizeof(*pool), PAGE_SIZE); This patch allocate memory of exactly needed size. Signed-off-by: Ganesh Mahendran <opensource.ganesh@xxxxxxxxx> Acked-by: Minchan Kim <minchan@xxxxxxxxxx> Cc: Nitin Gupta <ngupta@xxxxxxxxxx> Cc: Dan Streetman <ddstreet@xxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/zsmalloc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff -puN mm/zsmalloc.c~mm-zsmalloc-allocate-exactly-size-of-struct-zs_pool mm/zsmalloc.c --- a/mm/zsmalloc.c~mm-zsmalloc-allocate-exactly-size-of-struct-zs_pool +++ a/mm/zsmalloc.c @@ -979,12 +979,11 @@ static bool can_merge(struct size_class */ struct zs_pool *zs_create_pool(gfp_t flags) { - int i, ovhd_size; + int i; struct zs_pool *pool; struct size_class *prev_class = NULL; - ovhd_size = roundup(sizeof(*pool), PAGE_SIZE); - pool = kzalloc(ovhd_size, GFP_KERNEL); + pool = kzalloc(sizeof(*pool), GFP_KERNEL); if (!pool) return NULL; _ Patches currently in -mm which might be from opensource.ganesh@xxxxxxxxx are origin.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