aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@tv-sign.ru>2006-12-17 10:52:47 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-17 13:21:53 -0500
commit825020c3866e7312947e17a0caa9dd1a5622bafc (patch)
treedda5869db23a71af87aed414132943f7de95fc06
parent2bb71b5a44bfbe0d2066ee041149995f43b52d12 (diff)
[PATCH] sys_mincore: s/max/min/
fix a typo, sys_mincore() needs min(). Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Signed-off-by: Linus "I'm a moron" Torvalds <torvalds@osdl.org>
-rw-r--r--mm/mincore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mincore.c b/mm/mincore.c
index 566b6c2bae5f..8aca6f7167bb 100644
--- a/mm/mincore.c
+++ b/mm/mincore.c
@@ -142,7 +142,7 @@ asmlinkage long sys_mincore(unsigned long start, size_t len,
142 * the temporary buffer size. 142 * the temporary buffer size.
143 */ 143 */
144 down_read(&current->mm->mmap_sem); 144 down_read(&current->mm->mmap_sem);
145 retval = do_mincore(start, tmp, max(pages, PAGE_SIZE)); 145 retval = do_mincore(start, tmp, min(pages, PAGE_SIZE));
146 up_read(&current->mm->mmap_sem); 146 up_read(&current->mm->mmap_sem);
147 147
148 if (retval <= 0) 148 if (retval <= 0)