* @brief Insert a directory entry (dentry) into the hash table * * @param[in,out] dentry Pointer to the directory entry to be inserted */
| 256 | * @param[in,out] dentry Pointer to the directory entry to be inserted |
| 257 | */ |
| 258 | void dfs_dentry_insert(struct dfs_dentry *dentry) |
| 259 | { |
| 260 | dfs_file_lock(); |
| 261 | rt_list_insert_after(&hash_head.head[_dentry_hash(dentry->mnt, dentry->pathname)], &dentry->hashlist); |
| 262 | dentry->flags |= DENTRY_IS_ADDHASH; |
| 263 | dfs_file_unlock(); |
| 264 | } |
| 265 | |
| 266 | /** |
| 267 | * @brief Look up a directory entry (dentry) in the filesystem |
no test coverage detected