bug fix: pin_count error
@@ -452,7 +452,12 @@ impl VMObjectTrait for VMObjectPaged {
fn unset_contiguous(&self) {
let (_guard, mut inner) = self.get_inner_mut();
+ if inner.contiguous {
inner.contiguous = false;
+ for (_index, frame) in inner.frames.iter_mut() {
+ frame.pin_count -= 1;
+ }
+ }
}
}
