diff options
author | Andrew Morton <akpm@osdl.org> | 2004-05-22 08:04:51 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-05-22 08:04:51 -0700 |
commit | e52c02f76ae684f86f18f0fc7d7577e22a4d9318 (patch) | |
tree | 0943aa14e6adce0f4d479a6e158700714f8b9114 /mm | |
parent | d31d7a1874c710a5c1b589807d53f32d8e7df397 (diff) | |
download | history-e52c02f76ae684f86f18f0fc7d7577e22a4d9318.tar.gz |
[PATCH] small numa api fixups
From: Christoph Hellwig <hch@lst.de>
- don't include mempolicy.h in sched.h and mm.h when a forward delcaration
is enough. Andi argued against that in the past, but I'd really hate to add
another header to two of the includes used in basically every driver when we
can include it in the six files actually needing it instead (that number is
for my ppc32 system, maybe other arches need more include in their
directories)
- make numa api fields in tast_struct conditional on CONFIG_NUMA, this gives
us a few ugly ifdefs but avoids wasting memory on non-NUMA systems.
Diffstat (limited to 'mm')
-rw-r--r-- | mm/mempolicy.c | 1 | ||||
-rw-r--r-- | mm/mmap.c | 1 | ||||
-rw-r--r-- | mm/mprotect.c | 1 | ||||
-rw-r--r-- | mm/shmem.c | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c index 63b01f4b336805..d4c9c9b922327e 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c @@ -72,6 +72,7 @@ #include <linux/interrupt.h> #include <linux/init.h> #include <linux/compat.h> +#include <linux/mempolicy.h> #include <asm/uaccess.h> static kmem_cache_t *policy_cache; diff --git a/mm/mmap.c b/mm/mmap.c index 0a570ac3b4de80..6b0a9036abff85 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -21,6 +21,7 @@ #include <linux/profile.h> #include <linux/module.h> #include <linux/mount.h> +#include <linux/mempolicy.h> #include <asm/uaccess.h> #include <asm/pgalloc.h> diff --git a/mm/mprotect.c b/mm/mprotect.c index d7c3e33a855f50..7934dcec6e27f6 100644 --- a/mm/mprotect.c +++ b/mm/mprotect.c @@ -16,6 +16,7 @@ #include <linux/fs.h> #include <linux/highmem.h> #include <linux/security.h> +#include <linux/mempolicy.h> #include <asm/uaccess.h> #include <asm/pgalloc.h> diff --git a/mm/shmem.c b/mm/shmem.c index 6af8c3afcf568f..5a6d56a450d8e1 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -39,6 +39,7 @@ #include <linux/blkdev.h> #include <linux/security.h> #include <linux/swapops.h> +#include <linux/mempolicy.h> #include <asm/uaccess.h> #include <asm/div64.h> #include <asm/pgtable.h> |