diff options
-rw-r--r-- | mm/hugetlb.c | 6 |
1 files changed, 3 insertions, 3 deletions
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, | |||
3779 | return saddr; | 3779 | return saddr; |
3780 | } | 3780 | } |
3781 | 3781 | ||
3782 | static int vma_shareable(struct vm_area_struct *vma, unsigned long addr) | 3782 | static bool vma_shareable(struct vm_area_struct *vma, unsigned long addr) |
3783 | { | 3783 | { |
3784 | unsigned long base = addr & PUD_MASK; | 3784 | unsigned long base = addr & PUD_MASK; |
3785 | unsigned long end = base + PUD_SIZE; | 3785 | unsigned long end = base + PUD_SIZE; |
@@ -3789,8 +3789,8 @@ static int vma_shareable(struct vm_area_struct *vma, unsigned long addr) | |||
3789 | */ | 3789 | */ |
3790 | if (vma->vm_flags & VM_MAYSHARE && | 3790 | if (vma->vm_flags & VM_MAYSHARE && |
3791 | vma->vm_start <= base && end <= vma->vm_end) | 3791 | vma->vm_start <= base && end <= vma->vm_end) |
3792 | return 1; | 3792 | return true; |
3793 | return 0; | 3793 | return false; |
3794 | } | 3794 | } |
3795 | 3795 | ||
3796 | /* | 3796 | /* |