Skip to content
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

storage: refactor file cache code for coming fscache #353

Merged
merged 3 commits into from
Mar 29, 2022

Conversation

jiangliu
Copy link
Collaborator

Move code to manage cached file object from filecache/cache_entry.rs
into cachedfile.rs, so it could shared by fscache subsystem later.

Signed-off-by: Liu Jiang gerry@linux.alibaba.com

Move code to manage cached file object from filecache/cache_entry.rs
into cachedfile.rs, so it could shared by fscache subsystem later.

Signed-off-by: Liu Jiang <gerry@linux.alibaba.com>
Refine file cache related code by:
1) merge cache_entry.rs into filecache/mod.rs
2) rename BlobCacheConfig to FileCacheConfig

Signed-off-by: Liu Jiang <gerry@linux.alibaba.com>
Share a global async runtime instance instead of a runtime per cache
manager.

Signed-off-by: Liu Jiang <gerry@linux.alibaba.com>
Copy link
Collaborator

@imeoer imeoer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@hsiangkao
Copy link
Contributor

looks good

@jiangliu jiangliu merged commit 0f945f6 into dragonflyoss:master Mar 29, 2022
@jiangliu jiangliu deleted the fscache1 branch May 28, 2022 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants