diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index f1e3646c727c1e206bdbb556068f966cf9de4f9f..72b9c1c1a24411b588a520fbf0abd1a9325fc26e 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -4176,9 +4176,8 @@ static int __init io_uring_init(void) SLAB_ACCOUNT | SLAB_TYPESAFE_BY_RCU, offsetof(struct io_kiocb, cmd.data), sizeof_field(struct io_kiocb, cmd.data), NULL); - io_buf_cachep = kmem_cache_create("io_buffer", sizeof(struct io_buffer), 0, - SLAB_HWCACHE_ALIGN | SLAB_PANIC | SLAB_ACCOUNT, - NULL); + io_buf_cachep = KMEM_CACHE(io_buffer, + SLAB_HWCACHE_ALIGN | SLAB_PANIC | SLAB_ACCOUNT); #ifdef CONFIG_SYSCTL register_sysctl_init("kernel", kernel_io_uring_disabled_table);