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 Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux