aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/radix-tree/linux/slab.h
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2020-02-27 12:25:47 -0500
committerMatthew Wilcox (Oracle) <willy@infradead.org>2020-02-27 12:25:47 -0500
commit34eee836a9dd3e1987c10ed6afc7ece4131a993d (patch)
tree489929e5a459c71aa5843d915c55d06382e583f3 /tools/testing/radix-tree/linux/slab.h
parentXArray: Optimise xas_sibling() if !CONFIG_XARRAY_MULTI (diff)
downloadlinux-dev-34eee836a9dd3e1987c10ed6afc7ece4131a993d.tar.xz
linux-dev-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 '')
-rw-r--r--tools/testing/radix-tree/linux/slab.h6
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 */