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 --- lib/common/writer.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib/common') diff --git a/lib/common/writer.c b/lib/common/writer.c index 087ee3c..1bbf6bd 100644 --- a/lib/common/writer.c +++ b/lib/common/writer.c @@ -213,9 +213,6 @@ int sqfs_writer_finish(sqfs_writer_t *sqfs, const sqfs_writer_cfg_t *cfg) if (!cfg->quiet) fputs("Writing inodes and directories...\n", stdout); - tree_node_sort_recursive(sqfs->fs.root); - fstree_gen_inode_numbers(&sqfs->fs); - sqfs->super.inode_count = sqfs->fs.unique_inode_count; if (sqfs_serialize_fstree(cfg->filename, sqfs)) -- cgit v1.2.3