git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tunnels: fix netns vs proto registration ordering
[safe/jmp/linux-2.6]
/
mm
/
swap.c
diff --git
a/mm/swap.c
b/mm/swap.c
index
4a8a59e
..
308e57d
100644
(file)
--- a/
mm/swap.c
+++ b/
mm/swap.c
@@
-496,7
+496,7
@@
EXPORT_SYMBOL(pagevec_lookup_tag);
*/
void __init swap_setup(void)
{
- unsigned long megs =
num_phys
pages >> (20 - PAGE_SHIFT);
+ unsigned long megs =
totalram_
pages >> (20 - PAGE_SHIFT);
#ifdef CONFIG_SWAP
bdi_init(swapper_space.backing_dev_info);