[page_cache] Gap within one page should be filled with zeros in shrink case

This commit is contained in:
Shaowei Song
2024-07-02 09:29:22 +00:00
committed by Tate, Hongliang Tian
parent 0b8335c943
commit b1cec501d8
9 changed files with 85 additions and 37 deletions

View File

@ -11,6 +11,7 @@ use crate::prelude::*;
/// Implements several commonly used APIs for the block device to conveniently
/// read and write block(s).
// TODO: Add API to submit bio with multiple segments in scatter/gather manner.
impl dyn BlockDevice {
/// Synchronously reads contiguous blocks starting from the `bid`.
pub fn read_blocks_sync(