mm: hugetlb: cleanup duplicated code in unmapping vm range
authorHillf Danton <dhillf@gmail.com>
Fri, 23 Mar 2012 22:01:48 +0000 (15:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 23 Mar 2012 23:58:31 +0000 (16:58 -0700)
commit6629326b89b6e69cc44276e1649a31158bb2c819
treeca9463de7f327189cece1111112d2641114f3acc
parent934e18b5cb4531cc6e81865bf54115cfd21d1ac6
mm: hugetlb: cleanup duplicated code in unmapping vm range

Fix code duplication in __unmap_hugepage_range(), such as pte_page() and
huge_pte_none().

Signed-off-by: Hillf Danton <dhillf@gmail.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/hugetlb.c