mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-25 10:23:23 +00:00
Optimize the CpioEntry to send data to the Write trait
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
4b3cf8daeb
commit
13c4c614b5
@ -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()
|
||||
|
Reference in New Issue
Block a user