diff options
author | Nick Piggin <npiggin@suse.de> | 2007-02-14 06:35:02 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-15 12:57:03 -0500 |
commit | 30fcffed8149df18592b3e006b829232b7b3844f (patch) | |
tree | 3cfd5abc06e26ff9782897ddff3017138d0fcdf2 | |
parent | 724339d76d9407cd1a8ad32a9c1fdf64840cc51b (diff) |
[PATCH] mincore: CONFIG_SWAP=n fix
Fix mincore-anon patch to compile with CONFIG_SWAP=n
Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | mm/mincore.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mm/mincore.c b/mm/mincore.c index 95c5f49f0a1a..9780097e3812 100644 --- a/mm/mincore.c +++ b/mm/mincore.c | |||
@@ -116,8 +116,13 @@ static long do_mincore(unsigned long addr, unsigned char *vec, unsigned long pag | |||
116 | /* migration entries are always uptodate */ | 116 | /* migration entries are always uptodate */ |
117 | present = 1; | 117 | present = 1; |
118 | } else { | 118 | } else { |
119 | #ifdef CONFIG_SWAP | ||
119 | pgoff = entry.val; | 120 | pgoff = entry.val; |
120 | present = mincore_page(&swapper_space, pgoff); | 121 | present = mincore_page(&swapper_space, pgoff); |
122 | #else | ||
123 | WARN_ON(1); | ||
124 | present = 1; | ||
125 | #endif | ||
121 | } | 126 | } |
122 | } | 127 | } |
123 | } | 128 | } |