From 2777dfe050359c359233b2f00dfb5c3b2dba4ed6 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 18 Dec 2019 15:55:03 +0100 Subject: Cleanup: merge the fstree post processing functions Instead of having 3 different functions for sorting the tree, numbering the nodes and generating a file list, that all have to be used in the right order, this commit merges them into a single "fstree_post_process" function. Signed-off-by: David Oberhollenzer --- mkfs/mkfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mkfs') diff --git a/mkfs/mkfs.c b/mkfs/mkfs.c index ea01452..89215c6 100644 --- a/mkfs/mkfs.c +++ b/mkfs/mkfs.c @@ -232,8 +232,7 @@ int main(int argc, char **argv) sehnd = NULL; } - tree_node_sort_recursive(sqfs.fs.root); - fstree_gen_file_list(&sqfs.fs); + fstree_post_process(&sqfs.fs); if (pack_files(sqfs.data, &sqfs.fs, &sqfs.stats, &opt)) goto out; -- cgit v1.2.3