-
-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
加入索引缓存、引入路径抽象crate、重构ramfs #669
Conversation
@dragonosbot review |
@dragonosbot author |
@dragonosbot review |
将quicklookup移至dcache中
kernel/src/filesystem/vfs/dcache.rs
Outdated
struct HashTable<H: Hasher + Default> { | ||
_hash_type: PhantomData<H>, | ||
table: Vec<RwLock<VecDeque<Weak<dyn IndexNode>>>>, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我们有引入hashbrown这个 no_std 的哈希容器库,这里是有什么特别的需求,要自己实现一个吗
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
锁粒度和实现使用hashbrown的话有点复杂,稍后实现。
tty驱动发生了更改,请进行审查 cc @GnoCiYeH |
先不合并吧,现在在缝全局的dentry cache |
历时1月,路径缓存终于稳定了。本pr主要新增以下功能:
为支持索引缓存进行了以下更改:
目前测试通过,关于文件系统解挂载的功能仍需补充。