Skip to content

Commit

Permalink
Clear untracked flag on freed pages.
Browse files Browse the repository at this point in the history
Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
  • Loading branch information
NigelCunningham committed Feb 14, 2015
1 parent 4d54b36 commit 0c9c365
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mm/page_alloc.c
Expand Up @@ -705,6 +705,10 @@ static inline int free_pages_check(struct page *page)
#ifdef CONFIG_MEMCG
if (unlikely(page->mem_cgroup))
bad_reason = "page still charged to cgroup";
#endif
#ifdef CONFIG_TOI_INCREMENTAL
if (unlikely(PageTOI_Untracked(page)))
ClearPageTOI_Untracked(page);
#endif
if (unlikely(bad_reason)) {
bad_page(page, bad_reason, bad_flags);
Expand Down

0 comments on commit 0c9c365

Please sign in to comment.