Re: [RFC mm][PATCH 3/5] counting swap ents per mm

From: Christoph Lameter
Date: Thu Dec 10 2009 - 12:56:00 EST


On Thu, 10 Dec 2009, KAMEZAWA Hiroyuki wrote:

> Index: mmotm-2.6.32-Dec8/mm/rmap.c
> ===================================================================
> --- mmotm-2.6.32-Dec8.orig/mm/rmap.c
> +++ mmotm-2.6.32-Dec8/mm/rmap.c
> @@ -814,7 +814,7 @@ int try_to_unmap_one(struct page *page,
> update_hiwater_rss(mm);
>
> if (PageHWPoison(page) && !(flags & TTU_IGNORE_HWPOISON)) {
> - if (PageAnon(page))
> + if (PageAnon(page)) /* Not increments swapents counter */
> dec_mm_counter(mm, MM_ANONPAGES);

Remove comment. Its not helping.

Reviewed-by: Christoph Lameter <cl@xxxxxxxxxxxxxxxxxxxx>


--
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/