summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/imfs/imfs_rmnod.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-02-21 17:24:10 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-03-13 12:24:15 +0100
commit2e0ce55bf04861e9f80bf51621286b9a1a2c5af1 (patch)
treefc89dd3972bbf496d1575c0d996feaea342780aa /cpukit/libfs/src/imfs/imfs_rmnod.c
parentIMFS: Lock the file system during directory reads (diff)
downloadrtems-2e0ce55bf04861e9f80bf51621286b9a1a2c5af1.tar.bz2
IMFS: Use unprotected chain operations
Directory entry add or removal operations are protected by the file system instance lock. There is no need for protected chain operations.
Diffstat (limited to 'cpukit/libfs/src/imfs/imfs_rmnod.c')
-rw-r--r--cpukit/libfs/src/imfs/imfs_rmnod.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cpukit/libfs/src/imfs/imfs_rmnod.c b/cpukit/libfs/src/imfs/imfs_rmnod.c
index c50041942f..ae4d8fb92b 100644
--- a/cpukit/libfs/src/imfs/imfs_rmnod.c
+++ b/cpukit/libfs/src/imfs/imfs_rmnod.c
@@ -28,8 +28,7 @@
void IMFS_create_orphan( IMFS_jnode_t *jnode )
{
if ( jnode->Parent != NULL ) {
- rtems_chain_extract( &jnode->Node );
- jnode->Parent = NULL;
+ IMFS_remove_from_directory( jnode );
}
--jnode->st_nlink;