[PATCH] mm: fix ENTRIES_PER_PAGEPAGE overflow with 256KB pages

David Gibson david at gibson.dropbear.id.au
Fri Sep 12 13:50:06 EST 2008


On Thu, Sep 11, 2008 at 01:53:07AM +0400, Ilya Yanok wrote:
> ENTRIES_PER_PAGEPAGE define in mm/shmem.c becomes zero if page size is
> 256KB. This patch fixes this.

This looks.. dubious.  You're making a change to generic code for a
powerpc feature.  Plus it's not entirely clear that simply increasing
the variable size is a good fix here.  Again, I think since this is a
256k page special case it will simplify things to get the <=64k stuff
first, then handle this in another patch.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson



More information about the Linuxppc-dev mailing list