Skip to content

Commit

Permalink
[PATCH] mincore: CONFIG_SWAP=n fix
Browse files Browse the repository at this point in the history
Fix mincore-anon patch to compile with CONFIG_SWAP=n

Signed-off-by: Nick Piggin <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Nick Piggin authored and Linus Torvalds committed Feb 15, 2007
1 parent 724339d commit 30fcffe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mm/mincore.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
Expand Down

0 comments on commit 30fcffe

Please sign in to comment.