diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-08-23 15:38:12 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-08-23 19:34:30 -0400 |
commit | b422b19f636329e1a082bcacd3ac6b485d7a5b3e (patch) | |
tree | ee9979640d17b982ed92581557634a6df57b2fc8 /include/linux/slab.h | |
parent | 6f938e0399ce04699682459408b090387c73adb3 (diff) |
Update bcachefs sources to 22fa8fc32e6a bcachefs: rcu_pending now works in userspace
Diffstat (limited to 'include/linux/slab.h')
-rw-r--r-- | include/linux/slab.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/slab.h b/include/linux/slab.h index c17fb5d5..db6a5d55 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h @@ -18,6 +18,7 @@ #define alloc_hooks(_do, ...) _do #define ARCH_KMALLOC_MINALIGN 16 +#define ARCH_SLAB_MINALIGN 16 #define KMALLOC_MAX_SIZE SIZE_MAX #define MAX_PAGE_ORDER 10 @@ -102,6 +103,8 @@ static inline void *kmalloc_array(size_t n, size_t size, gfp_t flags) ((size) != 0 && (n) > SIZE_MAX / (size) \ ? NULL : kmalloc((n) * (size), flags)) +#define kvmalloc_array_noprof(...) kvmalloc_array(__VA_ARGS__) + #define kcalloc(n, size, flags) kmalloc_array(n, size, flags|__GFP_ZERO) #define kfree(p) free((void *) p) |