remove redundant page free

Change-Id: I5ca037ef20eb65578b804e314617953bfbf6c35b
This commit is contained in:
mucor 2021-04-08 20:17:11 +08:00
parent 58f07f94a0
commit 6ba93994cb
1 changed files with 0 additions and 6 deletions

View File

@ -428,11 +428,6 @@ LosFilePage *OsDumpDirtyPage(LosFilePage *oldFPage)
} }
OsCleanPageDirty(oldFPage->vmPage); 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)); (VOID)memcpy_s(newFPage, sizeof(LosFilePage), oldFPage, sizeof(LosFilePage));
return newFPage; return newFPage;
@ -444,7 +439,6 @@ VOID OsDoFlushDirtyPage(LosFilePage *fpage)
return; return;
} }
(VOID)OsFlushDirtyPage(fpage); (VOID)OsFlushDirtyPage(fpage);
LOS_PhysPageFree(fpage->vmPage);
LOS_MemFree(m_aucSysMem0, fpage); LOS_MemFree(m_aucSysMem0, fpage);
} }