mm:Make the function vma_has_reserves bool
Subsystems (2)
PATCH 1/1 mm:Make the function vma_has_reserves bool
This makes the function vma_has_reserves bool now due to this particular function only returning either one or zero as its return value.
--- mm/hugetlb.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
mm/hugetlb.c +6 -6
@@ -616,7 +616,7 @@ void reset_vma_resv_huge_pages(struct vm_area_struct *vma) }/* Returns true if the VMA has associated reserve pages */ -static int vma_has_reserves (struct vm_area_struct *vma,long chg) +static bool vma_has_reserves (struct vm_area_struct *vma,long chg) {if (vma->vm_flags &VM_NORESERVE ) {/*
@@ -629,23 +629,23 @@ static int vma_has_reserves(struct vm_area_struct *vma, long chg)* properly, so add work-around here. */ if (vma->vm_flags &VM_MAYSHARE && chg ==0 ) -return 1 ; +return true;else -return 0 ; +return false; }/* Shared mappings always use reserves */ if (vma->vm_flags &VM_MAYSHARE ) -return 1 ; +return true;/* * Only the process that called mmap() has reserves for * private mappings. */ if (is_vma_resv_set (vma,HPAGE_RESV_OWNER )) -return 1 ; +return true; -return 0 ; +return false; }static void enqueue_huge_page (struct hstate *h,struct page *page)
Signature · 7 lines
2.1.4 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
mm/hugetlb.c
Quoted 10 lines · Nicholas Krause
This makes the function
vma_has_reservesbool now due to this particular function only returning either one or zero as its return value.Signed-off-by Nicholas Krause <[email protected]>--- mm/hugetlb.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)mm/hugetlb.c +0
-0
Yeah, don't be sending one patch per function change for this kind of crap.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Quoted 10 lines · Davidlohr Bueso
Quoted 9 lines · Nicholas Krause
This makes the function
vma_has_reservesbool now due to this particular function only returning either one or zero as its return value.Signed-off-by Nicholas Krause <[email protected]>--- mm/hugetlb.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
Quoted 4 lines
mm/hugetlb.c
Quoted 1 line
mm/hugetlb.c +0
-0Yeah, don't be sending one patch per function change for this kind of crap.
Sure no problem. Is this applied however.
Nick
Signature · 7 lines
Sent from my Android device with K-9 Mail. Please excuse my brevity. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>