diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/memcontrol.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 9be3cf8a5da4..0e3fdbd809c7 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c | |||
@@ -1485,7 +1485,8 @@ void mem_cgroup_update_file_mapped(struct page *page, int val) | |||
1485 | SetPageCgroupFileMapped(pc); | 1485 | SetPageCgroupFileMapped(pc); |
1486 | } else { | 1486 | } else { |
1487 | __this_cpu_dec(mem->stat->count[MEM_CGROUP_STAT_FILE_MAPPED]); | 1487 | __this_cpu_dec(mem->stat->count[MEM_CGROUP_STAT_FILE_MAPPED]); |
1488 | ClearPageCgroupFileMapped(pc); | 1488 | if (!page_mapped(page)) /* for race between dec->inc counter */ |
1489 | ClearPageCgroupFileMapped(pc); | ||
1489 | } | 1490 | } |
1490 | 1491 | ||
1491 | done: | 1492 | done: |