mm: hugetlb: fix __unmap_hugepage_range()
authorHillf Danton <hillf.zj@alibaba-inc.com>
Wed, 10 Dec 2014 23:44:41 +0000 (15:44 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
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 <hillf.zj@alibaba-inc.com>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/hugetlb.c