对mkdir以及do_open进行加锁 (#55)

* 对mkdir加锁

* 给mkdir和do_open的dentry加锁

* 对加锁进行了修改

* modified

* bugfix: 修复一些死锁及空指针的错误

Co-authored-by: longjin <longjin@RinGoTek.cn>
This commit is contained in:
DaJiYuQia
2022-10-13 14:34:39 +08:00
committed by GitHub
parent efa38a7d5d
commit 5f4c802880
4 changed files with 99 additions and 50 deletions

View File

@ -502,13 +502,13 @@ struct vfs_dir_entry_operations_t fat32_dEntry_ops =
// todo: open
long fat32_open(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr)
{
return VFS_SUCCESS;
return 0;
}
// todo: close
long fat32_close(struct vfs_index_node_t *inode, struct vfs_file_t *file_ptr)
{
return VFS_SUCCESS;
return 0;
}
/**