diff --git a/kernel/base/vm/los_vm_filemap.c b/kernel/base/vm/los_vm_filemap.c index f05caf9b31993017e4101f9a86cc68a4347aaf1f..653194b43d393fa2620d4325da0f2291ce3b26f0 100644 --- a/kernel/base/vm/los_vm_filemap.c +++ b/kernel/base/vm/los_vm_filemap.c @@ -428,11 +428,6 @@ LosFilePage *OsDumpDirtyPage(LosFilePage *oldFPage) } OsCleanPageDirty(oldFPage->vmPage); - LOS_AtomicInc(&oldFPage->vmPage->refCounts); - /* no map page cache */ - if (LOS_AtomicRead(&oldFPage->vmPage->refCounts) == 1) { - LOS_AtomicInc(&oldFPage->vmPage->refCounts); - } (VOID)memcpy_s(newFPage, sizeof(LosFilePage), oldFPage, sizeof(LosFilePage)); return newFPage; @@ -444,7 +439,6 @@ VOID OsDoFlushDirtyPage(LosFilePage *fpage) return; } (VOID)OsFlushDirtyPage(fpage); - LOS_PhysPageFree(fpage->vmPage); LOS_MemFree(m_aucSysMem0, fpage); }