Re: [PATCH 08/16] mm: page_alloc: Only check the alloc flags and gfp_mask for dirty once

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

 



On Fri, Apr 18, 2014 at 02:08:36PM -0400, Johannes Weiner wrote:
> On Fri, Apr 18, 2014 at 03:50:35PM +0100, Mel Gorman wrote:
> > Currently it's calculated once per zone in the zonelist.
> > 
> > Signed-off-by: Mel Gorman <mgorman@xxxxxxx>
> 
> I would have assumed the compiler can detect such a loop invariant...
> Alas,
> 

Surprisingly it didn't in my case but the benefit of the patch is
marginal at best. I can drop it if it makes the code more obscure to
peoples eyes.

-- 
Mel Gorman
SUSE Labs

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  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]