mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-01 09:13:37 +00:00
[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>
This commit is contained in:
parent
724339d76d
commit
30fcffed81
1 changed files with 5 additions and 0 deletions
|
|
@ -116,8 +116,13 @@ static long do_mincore(unsigned long addr, unsigned char *vec, unsigned long pag
|
||||||
/* migration entries are always uptodate */
|
/* migration entries are always uptodate */
|
||||||
present = 1;
|
present = 1;
|
||||||
} else {
|
} else {
|
||||||
|
#ifdef CONFIG_SWAP
|
||||||
pgoff = entry.val;
|
pgoff = entry.val;
|
||||||
present = mincore_page(&swapper_space, pgoff);
|
present = mincore_page(&swapper_space, pgoff);
|
||||||
|
#else
|
||||||
|
WARN_ON(1);
|
||||||
|
present = 1;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue