diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-11-02 20:20:13 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-11-02 20:20:13 +0000 |
commit | b568ccb7455fa29df50205d5fc13802598ced1d6 (patch) | |
tree | 83690f72a7978f78a2181dddf6b923c8001ee6cf /c/src/exec/libfs/src/imfs/imfs_unlink.c | |
parent | Split object.c into multiple files. (diff) | |
download | rtems-b568ccb7455fa29df50205d5fc13802598ced1d6.tar.bz2 |
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.
Diffstat (limited to 'c/src/exec/libfs/src/imfs/imfs_unlink.c')
-rw-r--r-- | c/src/exec/libfs/src/imfs/imfs_unlink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c/src/exec/libfs/src/imfs/imfs_unlink.c b/c/src/exec/libfs/src/imfs/imfs_unlink.c index 4e0ca26b2a..e138064e61 100644 --- a/c/src/exec/libfs/src/imfs/imfs_unlink.c +++ b/c/src/exec/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; } |