summaryrefslogtreecommitdiff
path: root/nuttx/fs/fs_inoderemove.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-05-20 19:25:58 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-05-20 19:25:58 +0000
commita0fa0517d8641ebf91ef0ece1dcefb1c093be3d4 (patch)
tree5d6a4881e9dfb440faaaf91772d60d91ca16e3f7 /nuttx/fs/fs_inoderemove.c
parent953334cef0d815362633d35c326a0a62aefb0c39 (diff)
downloadpx4-nuttx-a0fa0517d8641ebf91ef0ece1dcefb1c093be3d4.tar.gz
px4-nuttx-a0fa0517d8641ebf91ef0ece1dcefb1c093be3d4.tar.bz2
px4-nuttx-a0fa0517d8641ebf91ef0ece1dcefb1c093be3d4.zip
Add support for close and fsync
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@242 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/fs_inoderemove.c')
-rw-r--r--nuttx/fs/fs_inoderemove.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/nuttx/fs/fs_inoderemove.c b/nuttx/fs/fs_inoderemove.c
index b6b56c4af..633222567 100644
--- a/nuttx/fs/fs_inoderemove.c
+++ b/nuttx/fs/fs_inoderemove.c
@@ -119,7 +119,6 @@ STATUS inode_remove(const char *path)
/* Find the node to delete */
- inode_semtake();
node = inode_search(&name, &left, &parent, NULL);
if (node)
{
@@ -137,13 +136,11 @@ STATUS inode_remove(const char *path)
*/
node->i_flags |= FSNODEFLAG_DELETED;
- inode_semgive();
}
else
{
/* And delete it now -- recursively to delete all of its children */
- inode_semgive();
inode_free(node->i_child);
free(node);
return OK;
@@ -152,6 +149,5 @@ STATUS inode_remove(const char *path)
/* The node does not exist or it has references */
- inode_semgive();
return ERROR;
}