Commit 31aafb45 authored by Nicholas Krause's avatar Nicholas Krause Committed by Linus Torvalds

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: default avatarNicholas Krause <xerofoify@gmail.com>
Acked-by: default avatarMike Kravetz <mike.kravetz@oracle.com>
Acked-by: default avatarNaoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Acked-by: default avatarDavid Rientjes <rientjes@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 1027e443
...@@ -3779,7 +3779,7 @@ static unsigned long page_table_shareable(struct vm_area_struct *svma, ...@@ -3779,7 +3779,7 @@ static unsigned long page_table_shareable(struct vm_area_struct *svma,
return saddr; 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 base = addr & PUD_MASK;
unsigned long end = base + PUD_SIZE; unsigned long end = base + PUD_SIZE;
...@@ -3789,8 +3789,8 @@ static int vma_shareable(struct vm_area_struct *vma, unsigned long addr) ...@@ -3789,8 +3789,8 @@ static int vma_shareable(struct vm_area_struct *vma, unsigned long addr)
*/ */
if (vma->vm_flags & VM_MAYSHARE && if (vma->vm_flags & VM_MAYSHARE &&
vma->vm_start <= base && end <= vma->vm_end) vma->vm_start <= base && end <= vma->vm_end)
return 1; return true;
return 0; return false;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment