Jianyu Zhan 8f34af6f93 mm, hugetlb: move the error handle logic out of normal code path
alloc_huge_page() now mixes normal code path with error handle logic.
This patches move out the error handle logic, to make normal code path
more clean and redue code duplicate.

Signed-off-by: Jianyu Zhan <nasa4836@gmail.com>
Acked-by: Davidlohr Bueso <davidlohr@hp.com>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-06-04 16:54:10 -07:00
..
2012-01-03 22:54:56 -05:00
2014-06-04 16:54:05 -07:00
2011-07-26 16:49:47 -07:00
2014-03-04 07:55:47 -08:00
2014-06-04 16:54:02 -07:00
2014-01-27 21:02:39 -08:00
2010-05-21 18:31:21 -04:00
2012-06-20 14:39:36 -07:00
2014-04-07 16:35:58 -07:00
2014-05-06 14:02:53 -04:00