lib: Introduce generic list_sort function
authorDave Chinner <david@fromorbit.com>
Tue, 12 Jan 2010 06:39:16 +0000 (17:39 +1100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 13 Jan 2010 05:02:00 +0000 (21:02 -0800)
commit2c761270d5520dd84ab0b4e47c24d99ff8503c38
treec23a51fdcc96641661b632d3b3c2c46ad7e53a91
parentdbf004d7883b3adb058c0c1a5635bc4ec27651c0
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 <david@fromorbit.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Acked-by: Artem Bityutskiy <dedekind@infradead.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpu/drm/drm_modes.c
fs/ubifs/gc.c
include/linux/list_sort.h [new file with mode: 0644]
lib/Makefile
lib/list_sort.c [new file with mode: 0644]