diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2020-02-27 12:25:47 -0500 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2020-02-27 12:25:47 -0500 |
commit | 34eee836a9dd3e1987c10ed6afc7ece4131a993d (patch) | |
tree | 489929e5a459c71aa5843d915c55d06382e583f3 /tools/testing/radix-tree/linux | |
parent | d8e93e3f22d9fd2e6a3ccae3623c3af8789ccfc0 (diff) | |
download | linux-stable-34eee836a9dd3e1987c10ed6afc7ece4131a993d.tar.gz linux-stable-34eee836a9dd3e1987c10ed6afc7ece4131a993d.tar.bz2 linux-stable-34eee836a9dd3e1987c10ed6afc7ece4131a993d.zip |
radix tree test suite: Support kmem_cache alignment
The radix tree doesn't use alignment, so the argument was ignored.
The maple tree needs its nodes to be aligned, so we need to pay attention
to the alignment argument. Also change the types of 'size' and 'align'
to unsigned int to match commit f4957d5bd0916.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Diffstat (limited to 'tools/testing/radix-tree/linux')
-rw-r--r-- | tools/testing/radix-tree/linux/slab.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/testing/radix-tree/linux/slab.h b/tools/testing/radix-tree/linux/slab.h index a037def0dec6..2958830ce4d7 100644 --- a/tools/testing/radix-tree/linux/slab.h +++ b/tools/testing/radix-tree/linux/slab.h @@ -20,8 +20,8 @@ static inline void *kzalloc(size_t size, gfp_t gfp) void *kmem_cache_alloc(struct kmem_cache *cachep, int flags); void kmem_cache_free(struct kmem_cache *cachep, void *objp); -struct kmem_cache * -kmem_cache_create(const char *name, size_t size, size_t offset, - unsigned long flags, void (*ctor)(void *)); +struct kmem_cache *kmem_cache_create(const char *name, unsigned int size, + unsigned int align, unsigned int flags, + void (*ctor)(void *)); #endif /* SLAB_H */ |