Bootmem needs to work on contiguous memory block quantities rather than whole nodes. So make the maxium number of blocks and the resulting number of blocks per node available to generic code like bootmem. Signed-off-by: Johannes Weiner <hannes@saeurebad.de> --- include/linux/numa.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) --- a/include/linux/numa.h +++ b/include/linux/numa.h @@ -1,13 +1,17 @@ #ifndef _LINUX_NUMA_H #define _LINUX_NUMA_H - #ifdef CONFIG_NODES_SHIFT -#define NODES_SHIFT CONFIG_NODES_SHIFT +#define NODES_SHIFT CONFIG_NODES_SHIFT #else -#define NODES_SHIFT 0 +#define NODES_SHIFT 0 #endif -#define MAX_NUMNODES (1 << NODES_SHIFT) +#define MAX_NUMNODES (1 << NODES_SHIFT) + +#ifndef NR_NODE_MEMBLKS +#define NR_NODE_MEMBLKS MAX_NUMNODES +#endif +#define NR_MEMBLKS_PER_NODE (NR_NODE_MEMBLKS / MAX_NUMNODES) #endif /* _LINUX_NUMA_H */ -- --
| David Miller | [GIT]: Networking |
| Andi Kleen | Please pull ACPI updates |
| Greg Kroah-Hartman | [PATCH 002/196] Chinese: rephrase English introduction in HOWTO |
| Fred . | Please add ZFS support (from GPL sources) |
git: | |
| Theodore Ts'o | Any objectsions to enhancing git-log to show tags/branch heads? |
| Alex R.M. Turner | Re: Problem with a push |
| Sebastian Schuberth | git on Cygwin: Not a valid object name HEAD |
| Dan Farina | backup or mirror a repository |
| Theo de Raadt | That whole "Linux stealing our code" thing |
| Jeff Ross | U320 Drive on U160 controller? |
| Richard Stallman | Real men don't attack straw men |
| Bertram Scharpf | First install: Grub doesn't find partitions |
| Jim Winstead Jr. | Re: Root Disk/Book Disk Compatibility |
| Desmond A. Kirkpatrick | ATI GUP bug with Linux 'tickler' |
| erc | HARDWARE COMPATIBILITY LIST |
| L.G. Ted Stern | Psfrag.sty in TeX, ext2fs |
