[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 <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Hugh Dickins and committed by Linus Torvalds 8462e201 e2cdef8c

-3
-3
mm/mincore.c
··· 118 118 if (start & ~PAGE_CACHE_MASK) 119 119 goto einval; 120 120 121 - if (start < FIRST_USER_PGD_NR * PGDIR_SIZE) 122 - goto enomem; 123 - 124 121 limit = TASK_SIZE; 125 122 if (start >= limit) 126 123 goto enomem;