tree 009c39a83ef819534621445647b04ba44bb3b13f
parent e2cdef8c847b480529b7e26991926aab4be008e6
author Hugh Dickins <[EMAIL PROTECTED]> Wed, 20 Apr 2005 03:29:20 -0700
committer Linus Torvalds <[EMAIL PROTECTED](none)> Wed, 20 Apr 2005 03:29:20
-0700
[PATCH] freepgt: sys_mincore ignore FIRST_USER_PGD_NR
Remove use of FIRST_USER_PGD_NR from sys_mincore: it's inconsistent (no other
syscall refers to it), unnecessary (sys_mincore loops over vmas further down)
and incorrect (misses user addresses in ARM's first pgd).
Signed-off-by: Hugh Dickins <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
mincore.c | 3 ---
1 files changed, 3 deletions(-)
Index: mm/mincore.c
===================================================================
--- b936ab7f0964f56bc3312ad9ad956e978ac39895/mm/mincore.c (mode:100644
sha1:07833dc5829df353b4d3cbab0c8c0af668b4f7d7)
+++ 009c39a83ef819534621445647b04ba44bb3b13f/mm/mincore.c (mode:100644
sha1:72890780c1c94f0d89740ac5942fbdaa3dbae01b)
@@ -118,9 +118,6 @@
if (start & ~PAGE_CACHE_MASK)
goto einval;
- if (start < FIRST_USER_PGD_NR * PGDIR_SIZE)
- goto enomem;
-
limit = TASK_SIZE;
if (start >= limit)
goto enomem;
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html