Re: [PATCH 1/9] ksm: fix mlockfreed to munlocked

From: Rik van Riel
Date: Tue Nov 24 2009 - 18:54:43 EST


On 11/24/2009 11:40 AM, Hugh Dickins wrote:
When KSM merges an mlocked page, it has been forgetting to munlock it:
that's been left to free_page_mlock(), which reports it in /proc/vmstat
as unevictable_pgs_mlockfreed instead of unevictable_pgs_munlocked (and
whinges "Page flag mlocked set for process" in mmotm, whereas mainline
is silently forgiving). Call munlock_vma_page() to fix that.

Signed-off-by: Hugh Dickins<hugh.dickins@xxxxxxxxxxxxx>

Acked-by: Rik van Riel <riel@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/