删除文件夹时回收dentry缓存

This commit is contained in:
fslongjin
2022-09-13 16:17:35 +08:00
parent 9f2b080cda
commit 26eebaf03a
10 changed files with 132 additions and 63 deletions

View File

@ -38,4 +38,12 @@ static inline bool is_local_mountpoint(struct vfs_dir_entry_t *dentry)
*
* @param dentry 目标dentry
*/
void vfs_dentry_put(struct vfs_dir_entry_t * dentry);
void vfs_dentry_put(struct vfs_dir_entry_t * dentry);
/**
* @brief 释放inode
*
* @param inode 待释放的inode
* @return int 错误码
*/
int vfs_free_inode(struct vfs_index_node_t * inode);