[PATCH v3 12/14] mm, hugetlb: clean-up error handling in hugetlb_cow()

2013-12-17 Thread Joonsoo Kim
Current code include 'Caller expects lock to be held' in every error path. We can clean-up it as we do error handling in one place. Reviewed-by: Aneesh Kumar K.V Signed-off-by: Joonsoo Kim diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 1817720..a9ae7d3 100644 --- a/mm/hugetlb.c +++

[PATCH v3 12/14] mm, hugetlb: clean-up error handling in hugetlb_cow()

2013-12-17 Thread Joonsoo Kim
Current code include 'Caller expects lock to be held' in every error path. We can clean-up it as we do error handling in one place. Reviewed-by: Aneesh Kumar K.V aneesh.ku...@linux.vnet.ibm.com Signed-off-by: Joonsoo Kim iamjoonsoo@lge.com diff --git a/mm/hugetlb.c b/mm/hugetlb.c index