From: Nicholas Krause Date: Fri, 4 Sep 2015 22:47:58 +0000 (-0700) Subject: mm/hugetlb.c: make vma_shareable() return bool X-Git-Tag: v4.3-rc1~73^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=31aafb45f4e1c34e4aba37c150ae4e74880b46ed;p=platform%2Fkernel%2Flinux-exynos.git mm/hugetlb.c: make vma_shareable() return bool This makes vma_shareable() return bool now due to this particular function only ever returning either one or zero as its return value. Signed-off-by: Nicholas Krause Acked-by: Mike Kravetz Acked-by: Naoya Horiguchi Acked-by: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/hugetlb.c b/mm/hugetlb.c index a8c3087089d8..5d1d84ca9674 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -3779,7 +3779,7 @@ static unsigned long page_table_shareable(struct vm_area_struct *svma, return saddr; } -static int vma_shareable(struct vm_area_struct *vma, unsigned long addr) +static bool vma_shareable(struct vm_area_struct *vma, unsigned long addr) { unsigned long base = addr & PUD_MASK; unsigned long end = base + PUD_SIZE; @@ -3789,8 +3789,8 @@ static int vma_shareable(struct vm_area_struct *vma, unsigned long addr) */ if (vma->vm_flags & VM_MAYSHARE && vma->vm_start <= base && end <= vma->vm_end) - return 1; - return 0; + return true; + return false; } /*