提交 ed7c8e47 编写于 作者: O openharmony_ci 提交者: Gitee

!129 remove redundant page free

Merge pull request !129 from 野生毛霉君/master
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册