]> git.baikalelectronics.ru Git - kernel.git/commit
mm, hugetlb: move the error handle logic out of normal code path
authorJianyu Zhan <nasa4836@gmail.com>
Wed, 4 Jun 2014 23:10:36 +0000 (16:10 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 4 Jun 2014 23:54:10 +0000 (16:54 -0700)
commitc9599295dfb0557030d65bf55f43101190cfcef5
tree685f2fa37565ede78b6ee2629d3f330eb7e39490
parente9a28dc71f0e408a8a0ae9a7cc53628eaefe1694
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>
mm/hugetlb.c