[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>
This commit is contained in:
Oleg Nesterov 2006-12-17 18:52:47 +03:00 committed by Linus Torvalds
parent 2bb71b5a44
commit 825020c386

View File

@ -142,7 +142,7 @@ asmlinkage long sys_mincore(unsigned long start, size_t len,
* the temporary buffer size.
*/
down_read(&current->mm->mmap_sem);
retval = do_mincore(start, tmp, max(pages, PAGE_SIZE));
retval = do_mincore(start, tmp, min(pages, PAGE_SIZE));
up_read(&current->mm->mmap_sem);
if (retval <= 0)