• Home
  • Raw
  • Download

Lines Matching refs:ret

190 	ssize_t ret = count;  in enabled_store()  local
202 ret = -EINVAL; in enabled_store()
204 if (ret > 0) { in enabled_store()
207 ret = err; in enabled_store()
209 return ret; in enabled_store()
228 int ret; in single_hugepage_flag_store() local
230 ret = kstrtoul(buf, 10, &value); in single_hugepage_flag_store()
231 if (ret < 0) in single_hugepage_flag_store()
232 return ret; in single_hugepage_flag_store()
450 int ret = 0; in setup_transparent_hugepage() local
458 ret = 1; in setup_transparent_hugepage()
464 ret = 1; in setup_transparent_hugepage()
470 ret = 1; in setup_transparent_hugepage()
473 if (!ret) in setup_transparent_hugepage()
475 return ret; in setup_transparent_hugepage()
534 unsigned long len_pad, ret; in __thp_get_unmapped_area() local
543 ret = current->mm->get_unmapped_area(filp, addr, len_pad, in __thp_get_unmapped_area()
550 if (IS_ERR_VALUE(ret)) in __thp_get_unmapped_area()
557 if (ret == addr) in __thp_get_unmapped_area()
560 ret += (off - ret) & (size - 1); in __thp_get_unmapped_area()
561 return ret; in __thp_get_unmapped_area()
567 unsigned long ret; in thp_get_unmapped_area() local
573 ret = __thp_get_unmapped_area(filp, addr, len, off, flags, PMD_SIZE); in thp_get_unmapped_area()
574 if (ret) in thp_get_unmapped_area()
575 return ret; in thp_get_unmapped_area()
587 vm_fault_t ret = 0; in __do_huge_pmd_anonymous_page() local
601 ret = VM_FAULT_OOM; in __do_huge_pmd_anonymous_page()
619 ret = check_stable_address_space(vma->vm_mm); in __do_huge_pmd_anonymous_page()
620 if (ret) in __do_huge_pmd_anonymous_page()
655 return ret; in __do_huge_pmd_anonymous_page()
729 vm_fault_t ret; in do_huge_pmd_anonymous_page() local
740 ret = 0; in do_huge_pmd_anonymous_page()
742 ret = check_stable_address_space(vma->vm_mm); in do_huge_pmd_anonymous_page()
743 if (ret) { in do_huge_pmd_anonymous_page()
749 ret = handle_userfault(vmf, VM_UFFD_MISSING); in do_huge_pmd_anonymous_page()
750 VM_BUG_ON(ret & VM_FAULT_FALLBACK); in do_huge_pmd_anonymous_page()
760 return ret; in do_huge_pmd_anonymous_page()
1021 int ret = -ENOMEM; in copy_huge_pmd() local
1035 ret = -EAGAIN; in copy_huge_pmd()
1058 ret = 0; in copy_huge_pmd()
1114 ret = 0; in copy_huge_pmd()
1119 return ret; in copy_huge_pmd()
1187 int ret; in copy_huge_pud() local
1193 ret = -EAGAIN; in copy_huge_pud()
1221 ret = 0; in copy_huge_pud()
1225 return ret; in copy_huge_pud()
1578 bool ret = false; in madvise_free_huge_pmd() local
1634 ret = true; in madvise_free_huge_pmd()
1638 return ret; in madvise_free_huge_pmd()
1802 int ret; in change_huge_pmd() local
1812 ret = 1; in change_huge_pmd()
1885 ret = HPAGE_PMD_NR; in change_huge_pmd()
1890 return ret; in change_huge_pmd()
2548 int i, compound, nr, ret; in total_mapcount() local
2559 ret = compound; in total_mapcount()
2561 ret += atomic_read(&page[i]._mapcount) + 1; in total_mapcount()
2564 return ret - compound * nr; in total_mapcount()
2566 ret -= nr; in total_mapcount()
2567 return ret; in total_mapcount()
2596 int i, ret, _total_mapcount, mapcount; in page_trans_huge_mapcount() local
2610 _total_mapcount = ret = 0; in page_trans_huge_mapcount()
2613 ret = max(ret, mapcount); in page_trans_huge_mapcount()
2617 ret -= 1; in page_trans_huge_mapcount()
2621 ret += mapcount; in page_trans_huge_mapcount()
2625 return ret; in page_trans_huge_mapcount()
2669 int extra_pins, ret; in split_huge_page_to_list() local
2691 ret = -EBUSY; in split_huge_page_to_list()
2702 ret = -EBUSY; in split_huge_page_to_list()
2724 ret = -EBUSY; in split_huge_page_to_list()
2761 ret = 0; in split_huge_page_to_list()
2769 ret = -EBUSY; in split_huge_page_to_list()
2780 count_vm_event(!ret ? THP_SPLIT_PAGE : THP_SPLIT_PAGE_FAILED); in split_huge_page_to_list()
2781 return ret; in split_huge_page_to_list()