mm: hugetlb: fix __unmap_hugepage_range()
authorHillf Danton <[email protected]>
Wed, 10 Dec 2014 23:44:41 +0000 (15:44 -0800)
committerLinus Torvalds <[email protected]>
Thu, 11 Dec 2014 01:41:08 +0000 (17:41 -0800)
commit569f48b85813f053aeab35429ba1657cb7f426db
treec69c7657aa770c2d7789bcc7f7f5b7e96fb3a9bf
parente4bd6a0248b2a026e07c19995c41a4cb5a49d797
mm: hugetlb: fix __unmap_hugepage_range()

First, after flushing TLB, we have no need to scan pte from start again.
Second, before bail out loop, the address is forwarded one step.

Signed-off-by: Hillf Danton <[email protected]>
Reviewed-by: Michal Hocko <[email protected]>
Acked-by: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/hugetlb.c