]> err.no Git - linux-2.6/commit
[PATCH] initialise total_memory() earlier
authorAndrew Morton <akpm@osdl.org>
Fri, 23 Jun 2006 09:03:47 +0000 (02:03 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 23 Jun 2006 14:42:52 +0000 (07:42 -0700)
commitbd1e22b8e0a90f9a91e4c27db14ca15773659bf7
tree8d32bdc39977af9dd3ba577b1fa34c0106b7f18e
parente0a42726794f71336ff4b26084d453dd597471ce
[PATCH] initialise total_memory() earlier

Initialise total_memory earlier in boot.  Because if for some reason we run
page reclaim early in boot, we don't want total_memory to be zero when we use
it as a divisor.

And rename total_memory to vm_total_pages to avoid naming clashes with
architectures.

Cc: Yasunori Goto <y-goto@jp.fujitsu.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Martin Bligh <mbligh@google.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/swap.h
mm/page_alloc.c
mm/vmscan.c