Re: Possible partial miss in pages needed for zone's memory map?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: KAMEZAWA Hiroyuki
Date: Tuesday, May 20, 2008 - 12:02 am

On Mon, 19 May 2008 23:19:37 -0700
Andrew Morton <akpm@linux-foundation.org> wrote:

Hmm, size * sizeof(struct page) is  multiple of PAGE_SIZE in many case.
Becasue "size" is always alinged to (1 << MAX_ORDER -1) (I believe...).

ex.) In x86 case,
   (1 << (MAX_ORDER(11) - 1)) * 4 (sizeof(long)) = (1 << 12) = PAGE_SIZE.

But not sure on other archs with various params.
I think above fix is correct.

Thanks,
-Kame

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Possible partial miss in pages needed for zone's memory map?, Johannes Weiner, (Sat May 17, 5:19 am)
Re: Possible partial miss in pages needed for zone's memor ..., KAMEZAWA Hiroyuki, (Tue May 20, 12:02 am)