diff options
author | Nick Piggin <npiggin@suse.de> | 2007-02-14 14:35:02 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-15 20:57:03 +0300 |
commit | 30fcffed8149df18592b3e006b829232b7b3844f (patch) | |
tree | 3cfd5abc06e26ff9782897ddff3017138d0fcdf2 /mm | |
parent | 724339d76d9407cd1a8ad32a9c1fdf64840cc51b (diff) | |
download | linux-30fcffed8149df18592b3e006b829232b7b3844f.tar.xz |
[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>
Diffstat (limited to 'mm')
-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 /* migration entries are always uptodate */ present = 1; } else { +#ifdef CONFIG_SWAP pgoff = entry.val; present = mincore_page(&swapper_space, pgoff); +#else + WARN_ON(1); + present = 1; +#endif } } } |