Files
odroid-linux/include/linux/list_sort.h
T
Dave ChinnerandLinus Torvalds 2c761270d5 lib: Introduce generic list_sort function
There are two copies of list_sort() in the tree already, one in the DRM
code, another in ubifs.  Now XFS needs this as well.  Create a generic
list_sort() function from the ubifs version and convert existing users
to it so we don't end up with yet another copy in the tree.

Signed-off-by: Dave Chinner <[email protected]>
Acked-by: Dave Airlie <[email protected]>
Acked-by: Artem Bityutskiy <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2010-01-12 21:02:00 -08:00

12 lines
238 B
C

#ifndef _LINUX_LIST_SORT_H
#define _LINUX_LIST_SORT_H
#include <linux/types.h>
struct list_head;
void list_sort(void *priv, struct list_head *head,
int (*cmp)(void *priv, struct list_head *a,
struct list_head *b));
#endif