mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 20:56:47 +08:00
nuttx/fs:Rename node with inode.
In ./fs/inode directory, the variable name FAR struct inode *node is named inconsistently, with some using node and others using inode. To facilitate understanding, we will standardize the naming to FAR struct inode *inode. Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
This commit is contained in:
@@ -61,12 +61,12 @@ int inode_find(FAR struct inode_search_s *desc)
|
||||
{
|
||||
/* Found it */
|
||||
|
||||
FAR struct inode *node = desc->node;
|
||||
DEBUGASSERT(node != NULL);
|
||||
FAR struct inode *inode = desc->node;
|
||||
DEBUGASSERT(inode != NULL);
|
||||
|
||||
/* Increment the reference count on the inode */
|
||||
|
||||
atomic_fetch_add(&node->i_crefs, 1);
|
||||
atomic_fetch_add(&inode->i_crefs, 1);
|
||||
}
|
||||
|
||||
inode_unlock();
|
||||
|
||||
Reference in New Issue
Block a user