Re: [PATCH 2/2] mm: Add kvmalloc_ab_c and kvzalloc_struct

From: Christopher Lameter
Date: Wed Feb 14 2018 - 14:56:06 EST


On Wed, 14 Feb 2018, Matthew Wilcox wrote:

> +#define kvzalloc_struct(p, member, n, gfp) \
> + (typeof(p))kvzalloc_ab_c(n, \
> + sizeof(*(p)->member) + __must_be_array((p)->member), \
> + offsetof(typeof(*(p)), member), gfp)
> +

Uppercase like the similar KMEM_CACHE related macros in
include/linux/slab.h?>