Change the return value of dup() for Vmo<Rights>

This commit is contained in:
LI Qing
2024-05-16 14:59:09 +08:00
committed by Tate, Hongliang Tian
parent e6b0fd8aa3
commit 770a123415
5 changed files with 13 additions and 16 deletions

View File

@ -45,7 +45,7 @@ impl PageCache {
// TODO: The capability is too highrestrict it to eliminate the possibility of misuse.
// For example, the `resize` api should be forbidded.
pub fn pages(&self) -> Vmo<Full> {
self.pages.dup().unwrap()
self.pages.dup()
}
/// Evict the data within a specified range from the page cache and persist