mm: use mm_struct to resolve gate vma's in __get_user_pages
authorStephen Wilson <wilsons@start.ca>
Sun, 13 Mar 2011 19:49:18 +0000 (15:49 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 23 Mar 2011 20:36:56 +0000 (16:36 -0400)
commite7f22e207bacdba5b73f2893a3abe935a5373e2e
tree02e9f01788742db409587475a0aa10f3a0347e38
parentcae5d39032acf26c265f6b1dc73d7ce6ff4bc387
mm: use mm_struct to resolve gate vma's in __get_user_pages

We now check if a requested user page overlaps a gate vma using the supplied mm
instead of the supplied task.  The given task is now used solely for accounting
purposes and may be NULL.

Signed-off-by: Stephen Wilson <wilsons@start.ca>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
mm/memory.c