diff options
Diffstat (limited to 'mm/mincore.c')
-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 | } |