btrfs-progs/list_sort.h
David Sterba 4e466c8b44 btrfs-progs: add list_sort and use it to sort devices by id
The devices in 'btrfs filesystem show' are now sorted by the device id,
currently the order was undefined.

Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
2013-10-16 08:22:26 -04:00

15 lines
291 B
C

/*
* taken from linux kernel include/list_sort.h
*/
#ifndef _LINUX_LIST_SORT_H
#define _LINUX_LIST_SORT_H
#include "kerncompat.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