Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chyyuu/os_kernel_lab
/ sync
Method
sync
easy-fs/src/block_cache.rs:63–68 ·
view source on GitHub ↗
(&mut self)
Source
from the content-addressed store, hash-verified
61
}
62
63
pub fn sync(&mut self) {
64
if self.modified {
65
self.modified = false;
66
self.block_device.write_block(self.block_id, &self.cache);
67
}
68
}
69
}
70
71
impl Drop for BlockCache {
Callers
2
drop
Method · 0.80
block_cache_sync_all
Function · 0.80
Calls
1
write_block
Method · 0.45
Tested by
no test coverage detected