mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-25 02:13:24 +00:00
Improve the read/write efficiency of Vmo
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
f4ea23b72c
commit
25b7007ffa
@ -84,7 +84,7 @@ impl Vmo<Rights> {
|
||||
/// The method requires the Write right.
|
||||
pub fn commit(&self, range: Range<usize>) -> Result<()> {
|
||||
self.check_rights(Rights::WRITE)?;
|
||||
self.0.commit(range, false)?;
|
||||
self.0.commit_and_operate(&range, |_| {}, false)?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user