[PATCH] sys_mincore: s/max/min/
From: Oleg Nesterov
Date: Sun Dec 17 2006 - 10:52:47 EST
fix a typo, sys_mincore() needs min().
Signed-off-by: Oleg Nesterov <oleg@xxxxxxxxxx>
Signed-off-by: Linus "I'm a moron" Torvalds <torvalds@xxxxxxxx>
---
mm/mincore.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/mm/mincore.c b/mm/mincore.c
index 566b6c2..8aca6f7 100644
--- a/mm/mincore.c
+++ b/mm/mincore.c
@@ -142,7 +142,7 @@ asmlinkage long sys_mincore(unsigned lon
* the temporary buffer size.
*/
down_read(¤t->mm->mmap_sem);
- retval = do_mincore(start, tmp, max(pages, PAGE_SIZE));
+ retval = do_mincore(start, tmp, min(pages, PAGE_SIZE));
up_read(¤t->mm->mmap_sem);
if (retval <= 0)
--
1.4.2.4
--/04w6evG8XlLl3ft--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/