]> www.infradead.org Git - mtd-utils.git/commit
mtd-utils: Extract list implementation to common lib and add list_sort support
authorZhihao Cheng <chengzhihao1@huawei.com>
Fri, 2 Feb 2024 02:22:53 +0000 (10:22 +0800)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Wed, 25 Sep 2024 13:03:08 +0000 (15:03 +0200)
commita3b803747b363b0ececd329583e0412672e7f30b
treea2b48674f2e28235f89d787c16e0917f7236ed7b
parent6ff8739a6bf5fce30e9d99ee4b35322313300dcb
mtd-utils: Extract list implementation to common lib and add list_sort support

Current list implementation code is put under jffs utils, extract it into
common lib, and add more list operations(eg. list_move, list_splice, etc.).
Besides, add list sorting support in new source file lib/list_sort.c.

This is a preparation for replacing implementation of UBIFS utils with
linux kernel libs.

Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
include/list.h [new file with mode: 0644]
jffsX-utils/Makemodule.am
jffsX-utils/compr.c
jffsX-utils/compr.h
lib/Makemodule.am
lib/list_sort.c [new file with mode: 0644]