Re: [PATCH] fix count_vm_event preempt in memory compaction directreclaim

From: Mel Gorman
Date: Wed May 05 2010 - 08:52:20 EST


On Wed, May 05, 2010 at 02:19:08PM +0200, Andrea Arcangeli wrote:
> On Tue, Apr 20, 2010 at 10:01:14PM +0100, Mel Gorman wrote:
> > + if (page) {
> > + __count_vm_event(COMPACTSUCCESS);
> > + return page;
>
> ==
> From: Andrea Arcangeli <aarcange@xxxxxxxxxx>
>
> Preempt is enabled so it must use count_vm_event.
>
> Signed-off-by: Andrea Arcangeli <aarcange@xxxxxxxxxx>

Reviewed-by: Mel Gorman <mel@xxxxxxxxx>

Andrew, this is a fix to the patch
mmcompaction-direct-compact-when-a-high-order-allocation-fails.patch

Thanks Andrea, well spotted.

> ---
>
> diff --git a/mm/page_alloc.c b/mm/page_alloc.c
> --- a/mm/page_alloc.c
> +++ b/mm/page_alloc.c
> @@ -1768,7 +1768,7 @@ __alloc_pages_direct_compact(gfp_t gfp_m
> alloc_flags, preferred_zone,
> migratetype);
> if (page) {
> - __count_vm_event(COMPACTSUCCESS);
> + count_vm_event(COMPACTSUCCESS);
> return page;
> }
>
>

--
Mel Gorman
Part-time Phd Student Linux Technology Center
University of Limerick IBM Dublin Software Lab
--
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/