From: Jianyu Zhan Date: Wed, 4 Jun 2014 23:10:36 +0000 (-0700) Subject: mm, hugetlb: move the error handle logic out of normal code path X-Git-Tag: omap-for-v3.16/fixes-against-rc1~56^2~16^2~102 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f34af6f93aee88291cec53ae8dff4989e58fbbd;p=pandora-kernel.git 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 Acked-by: Davidlohr Bueso Reviewed-by: Michal Hocko Reviewed-by: Aneesh Kumar K.V Cc: Johannes Weiner Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed