b35a35b556
thp: share get_huge_page_tail()
...
This avoids duplicating the function in every arch gup_fast.
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com >
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl >
Cc: Hugh Dickins <hughd@google.com >
Cc: Johannes Weiner <jweiner@redhat.com >
Cc: Rik van Riel <riel@redhat.com >
Cc: Mel Gorman <mgorman@suse.de >
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com >
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org >
Cc: David Gibson <david@gibson.dropbear.id.au >
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com >
Cc: Heiko Carstens <heiko.carstens@de.ibm.com >
Cc: David Miller <davem@davemloft.net >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2011-11-02 16:06:58 -07:00
0693bc9ce2
s390: gup_huge_pmd() return 0 if pte changes
...
s390 didn't return 0 in that case, if it's rolling back the *nr pointer it
should also return zero to avoid adding pages to the array at the wrong
offset.
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com >
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl >
Cc: Hugh Dickins <hughd@google.com >
Cc: Johannes Weiner <jweiner@redhat.com >
Cc: Rik van Riel <riel@redhat.com >
Cc: Mel Gorman <mgorman@suse.de >
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com >
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org >
Cc: David Gibson <david@gibson.dropbear.id.au >
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com >
Cc: Heiko Carstens <heiko.carstens@de.ibm.com >
Cc: David Miller <davem@davemloft.net >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2011-11-02 16:06:58 -07:00
220a2eb228
s390: gup_huge_pmd() support THP tail recounting
...
Up to this point the code assumed old refcounting for hugepages (pre-thp).
This updates the code directly to the thp mapcount tail page refcounting.
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com >
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl >
Cc: Hugh Dickins <hughd@google.com >
Cc: Johannes Weiner <jweiner@redhat.com >
Cc: Rik van Riel <riel@redhat.com >
Cc: Mel Gorman <mgorman@suse.de >
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com >
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org >
Cc: David Gibson <david@gibson.dropbear.id.au >
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com >
Cc: Heiko Carstens <heiko.carstens@de.ibm.com >
Cc: David Miller <davem@davemloft.net >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2011-11-02 16:06:58 -07:00
25591b0703
[S390] fix get_user_pages_fast
...
The check for the _PAGE_RO bit in get_user_pages_fast for write==1 is
the wrong way around. It must not be set for the fast path.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com >
2010-11-10 10:05:53 +01:00
80217147a3
[S390] lockless get_user_pages_fast()
...
Implement get_user_pages_fast without locking in the fastpath on s390.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com >
2010-10-25 16:10:15 +02:00