From b568ccb7455fa29df50205d5fc13802598ced1d6 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 2 Nov 1999 20:20:13 +0000 Subject: The object memfile.o was being included in the miniIMFS even though it should not have been. This required that IMFS_rmnod be split into three separate (per file type) routines to avoid dependencies. In the end, a miniIMFS application is 6K smaller than one using the full IMFS. --- cpukit/libfs/src/imfs/imfs_unlink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/libfs/src/imfs/imfs_unlink.c') diff --git a/cpukit/libfs/src/imfs/imfs_unlink.c b/cpukit/libfs/src/imfs/imfs_unlink.c index 4e0ca26b2a..e138064e61 100644 --- a/cpukit/libfs/src/imfs/imfs_unlink.c +++ b/cpukit/libfs/src/imfs/imfs_unlink.c @@ -55,13 +55,13 @@ int IMFS_unlink( node->info.hard_link.link_node->st_nlink --; IMFS_update_ctime( node->info.hard_link.link_node ); if ( node->info.hard_link.link_node->st_nlink < 1) { - result = IMFS_rmnod( &the_link ); + result = (*loc->handlers->rmnod)( &the_link ); if ( result != 0 ) return -1; } } - result = IMFS_rmnod( loc ); + result = (*loc->handlers->rmnod)( &the_link ); return result; } -- cgit v1.2.3