Btrfs-progs: fi usage: free memory if realloc fails
[btrfs-progs-unstable/devel.git] / list_sort.h
blob987cd5c49072e857b78266d08dcfe0429171f3da
1 /*
2 * taken from linux kernel include/list_sort.h
3 */
4 #ifndef _LINUX_LIST_SORT_H
5 #define _LINUX_LIST_SORT_H
7 #include "kerncompat.h"
9 struct list_head;
11 void list_sort(void *priv, struct list_head *head,
12 int (*cmp)(void *priv, struct list_head *a,
13 struct list_head *b));
14 #endif