Re: [experimental][PATCH] mm,vmstat: per cpu stat flush too when per cpu page cache flushed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 13 Oct 2010, KOSAKI Motohiro wrote:

> diff --git a/mm/page_alloc.c b/mm/page_alloc.c
> index 194bdaa..8b50e52 100644
> --- a/mm/page_alloc.c
> +++ b/mm/page_alloc.c
> @@ -1093,6 +1093,7 @@ static void drain_pages(unsigned int cpu)
>  		pcp = &pset->pcp;
>  		free_pcppages_bulk(zone, pcp->count, pcp);
>  		pcp->count = 0;
> +		__flush_zone_state(zone, NR_FREE_PAGES);
>  		local_irq_restore(flags);
>  	}
>  }

drain_zone_pages() is called from refresh_vm_stats() and
refresh_vm_stats() already flushes the counters. The patch will not change
anything.


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxxx  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]