fs/inode: Change inode_unlink to static function
since it's only be called by inode_remove now Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
5b87fdfb9d
commit
949d01be51
@ -33,7 +33,7 @@
|
||||
#include "inode/inode.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
@ -54,7 +54,7 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
FAR struct inode *inode_unlink(FAR const char *path)
|
||||
static FAR struct inode *inode_unlink(FAR const char *path)
|
||||
{
|
||||
struct inode_search_s desc;
|
||||
FAR struct inode *node = NULL;
|
||||
@ -102,6 +102,10 @@ FAR struct inode *inode_unlink(FAR const char *path)
|
||||
return node;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Name: inode_remove
|
||||
*
|
||||
|
@ -328,21 +328,6 @@ void inode_root_reserve(void);
|
||||
int inode_reserve(FAR const char *path,
|
||||
mode_t mode, FAR struct inode **inode);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: inode_unlink
|
||||
*
|
||||
* Description:
|
||||
* Given a path, remove a the node from the in-memory, inode tree that the
|
||||
* path refers to. This is normally done in preparation to removing or
|
||||
* moving an inode.
|
||||
*
|
||||
* Assumptions/Limitations:
|
||||
* The caller must hold the inode semaphore
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
FAR struct inode *inode_unlink(FAR const char *path);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: inode_remove
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user