diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-02-21 17:24:10 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-03-13 12:24:15 +0100 |
commit | 2e0ce55bf04861e9f80bf51621286b9a1a2c5af1 (patch) | |
tree | fc89dd3972bbf496d1575c0d996feaea342780aa /cpukit/libfs/src/imfs/imfs_rmnod.c | |
parent | IMFS: Lock the file system during directory reads (diff) | |
download | rtems-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.c | 3 |
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; |