Optimize the CpioEntry to send data to the Write trait

This commit is contained in:
LI Qing
2023-07-21 16:04:12 +08:00
committed by Tate, Hongliang Tian
parent 4b3cf8daeb
commit 13c4c614b5
11 changed files with 275 additions and 117 deletions

View File

@ -216,7 +216,7 @@ impl VmoInner {
if self.should_share_frame_with_parent(write_page) {
return Ok(inherited_frame);
}
let frame = {
let options = VmAllocOptions::new(1);
VmFrameVec::allocate(&options)?.pop().unwrap()