projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1027e44
)
mm/hugetlb.c: make vma_shareable() return bool
author
Nicholas Krause
<
[email protected]
>
Fri, 4 Sep 2015 22:47:58 +0000
(15:47 -0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 4 Sep 2015 23:54:41 +0000
(16:54 -0700)
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 <
[email protected]
>
Acked-by: Mike Kravetz <
[email protected]
>
Acked-by: Naoya Horiguchi <
[email protected]
>
Acked-by: David Rientjes <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/hugetlb.c
patch
|
blob
|
history
diff --git
a/mm/hugetlb.c
b/mm/hugetlb.c
index a8c3087089d8a8627c66a03602ecb6154a238ee8..5d1d84ca967493b50f09dccac64fafafcdc2a1fe 100644
(file)
--- 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
;
}
/*