]> Git Repo - linux.git/commit - net/dccp/proto.c
mm: replace various uses of num_physpages by totalram_pages
authorJan Beulich <[email protected]>
Tue, 22 Sep 2009 00:03:05 +0000 (17:03 -0700)
committerLinus Torvalds <[email protected]>
Tue, 22 Sep 2009 14:17:38 +0000 (07:17 -0700)
commit4481374ce88ba8f460c8b89f2572027bd27057d0
tree6896601b6a1da0e3e932ffa75fcff966c834c02c
parent4738e1b9cf8f9e28d7de080a5e6ce5d0095ea18f
mm: replace various uses of num_physpages by totalram_pages

Sizing of memory allocations shouldn't depend on the number of physical
pages found in a system, as that generally includes (perhaps a huge amount
of) non-RAM pages.  The amount of what actually is usable as storage
should instead be used as a basis here.

Some of the calculations (i.e.  those not intending to use high memory)
should likely even use (totalram_pages - totalhigh_pages).

Signed-off-by: Jan Beulich <[email protected]>
Acked-by: Rusty Russell <[email protected]>
Acked-by: Ingo Molnar <[email protected]>
Cc: Dave Airlie <[email protected]>
Cc: Kyle McMartin <[email protected]>
Cc: Jeremy Fitzhardinge <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Patrick McHardy <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
21 files changed:
arch/x86/kernel/microcode_core.c
drivers/char/agp/backend.c
drivers/parisc/ccio-dma.c
drivers/parisc/sba_iommu.c
drivers/xen/balloon.c
fs/ntfs/malloc.h
include/linux/mm.h
init/main.c
mm/slab.c
mm/swap.c
mm/vmalloc.c
net/core/sock.c
net/dccp/proto.c
net/decnet/dn_route.c
net/ipv4/route.c
net/ipv4/tcp.c
net/netfilter/nf_conntrack_core.c
net/netfilter/x_tables.c
net/netfilter/xt_hashlimit.c
net/netlink/af_netlink.c
net/sctp/protocol.c
This page took 0.055199 seconds and 4 git commands to generate.