Re: [PATCH v2 2/3] mm: add kmem_cache_create_rcu()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 28 Aug 2024 at 04:07, Christian Brauner <brauner@xxxxxxxxxx> wrote:
>
>  static struct kmem_cache *create_cache(const char *name,
> -               unsigned int object_size, unsigned int align,
> -               slab_flags_t flags, unsigned int useroffset,
> -               unsigned int usersize, void (*ctor)(void *))
> +               unsigned int object_size, unsigned int freeptr_offset,
> +               unsigned int align, slab_flags_t flags,
> +               unsigned int useroffset, unsigned int usersize,
> +               void (*ctor)(void *))

I actually think it would be nicer at this point to have a "kmem_cache
create structure", and not 8 individual arguments.

But this approach looks fine to me even without that.

                  Linus




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux