diff --git a/mm/z3fold.c b/mm/z3fold.c index 64ddf864d5ee992e3c783271da0a9a6e1e46e5ac..1b790d02f6f1eb23fa244589153c8eb31166743d 100644 --- a/mm/z3fold.c +++ b/mm/z3fold.c @@ -998,7 +998,8 @@ static struct z3fold_pool *z3fold_create_pool(const char *name, gfp_t gfp, goto out_c; spin_lock_init(&pool->lock); spin_lock_init(&pool->stale_lock); - pool->unbuddied = __alloc_percpu(sizeof(struct list_head)*NCHUNKS, 2); + pool->unbuddied = __alloc_percpu(sizeof(struct list_head) * NCHUNKS, + __alignof__(struct list_head)); if (!pool->unbuddied) goto out_pool; for_each_possible_cpu(cpu) {