summaryrefslogtreecommitdiff
path: root/include/linux/sort.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-02-09 21:30:46 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2024-02-09 21:32:46 -0500
commit7a716b76b5963dc2d158883f4497bab221932412 (patch)
treee326c5280a0c43b080f520a3bd19ba9a77b556be /include/linux/sort.h
parent9e6d9560d070bc14e1498a24ef6634d2b99f7e84 (diff)
Update bcachefs sources to bee7b5a4fa21 bcachefs: Pin btree cache in ram for random access in fsck
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'include/linux/sort.h')
-rw-r--r--include/linux/sort.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/sort.h b/include/linux/sort.h
index afea0445..17c6ba34 100644
--- a/include/linux/sort.h
+++ b/include/linux/sort.h
@@ -2,6 +2,12 @@
#define _LINUX_SORT_H
#include <stdlib.h>
+#include <linux/types.h>
+
+void sort_r(void *base, size_t num, size_t size,
+ cmp_r_func_t cmp_func,
+ swap_r_func_t swap_func,
+ const void *priv);
static inline void sort(void *base, size_t num, size_t size,
int (*cmp_func)(const void *, const void *),