/mm/ |
D | process_vm_access.c | 81 ssize_t rc = 0; in process_vm_rw_single_vec() local 94 while (!rc && nr_pages && iov_iter_count(iter)) { in process_vm_rw_single_vec() 117 rc = process_vm_rw_pages(process_pages, in process_vm_rw_single_vec() 130 return rc; in process_vm_rw_single_vec() 160 ssize_t rc = 0; in process_vm_rw_core() local 198 rc = -ESRCH; in process_vm_rw_core() 204 rc = IS_ERR(mm) ? PTR_ERR(mm) : -ESRCH; in process_vm_rw_core() 209 if (rc == -EACCES) in process_vm_rw_core() 210 rc = -EPERM; in process_vm_rw_core() 214 for (i = 0; i < riovcnt && iov_iter_count(iter) && !rc; i++) in process_vm_rw_core() [all …]
|
D | migrate.c | 652 int rc; in migrate_page() local 656 rc = migrate_page_move_mapping(mapping, newpage, page, 0); in migrate_page() 658 if (rc != MIGRATEPAGE_SUCCESS) in migrate_page() 659 return rc; in migrate_page() 713 int rc; in __buffer_migrate_page() local 745 rc = -EAGAIN; in __buffer_migrate_page() 755 rc = migrate_page_move_mapping(mapping, newpage, page, 0); in __buffer_migrate_page() 756 if (rc != MIGRATEPAGE_SUCCESS) in __buffer_migrate_page() 773 rc = MIGRATEPAGE_SUCCESS; in __buffer_migrate_page() 784 return rc; in __buffer_migrate_page() [all …]
|
D | memory_hotplug.c | 543 int rc = -EINVAL; in set_online_page_callback() local 550 rc = 0; in set_online_page_callback() 556 return rc; in set_online_page_callback() 562 int rc = -EINVAL; in restore_online_page_callback() local 569 rc = 0; in restore_online_page_callback() 575 return rc; in restore_online_page_callback() 1487 int rc; in add_memory() local 1490 rc = __add_memory(nid, start, size, mhp_flags); in add_memory() 1493 return rc; in add_memory() 1567 int rc; in add_memory_driver_managed() local [all …]
|
D | sparse.c | 685 int rc = 0; in fill_subsection_map() local 692 rc = -EINVAL; in fill_subsection_map() 694 rc = -EEXIST; in fill_subsection_map() 699 return rc; in fill_subsection_map() 831 int rc = 0; in section_activate() local 840 rc = fill_subsection_map(pfn, nr_pages); in section_activate() 841 if (rc) { in section_activate() 845 return ERR_PTR(rc); in section_activate()
|
D | shuffle.c | 23 int rc = param_set_bool(val, kp); in shuffle_store() local 25 if (rc < 0) in shuffle_store() 26 return rc; in shuffle_store()
|
D | percpu.c | 3042 int group, i, highest_group, rc = 0; in pcpu_embed_first_chunk() local 3054 rc = -ENOMEM; in pcpu_embed_first_chunk() 3072 rc = -ENOMEM; in pcpu_embed_first_chunk() 3092 rc = -EINVAL; in pcpu_embed_first_chunk() 3139 return rc; in pcpu_embed_first_chunk() 3171 int unit, i, j, rc = 0; in pcpu_page_first_chunk() local 3230 rc = __pcpu_map_pages(unit_addr, &pages[unit * unit_pages], in pcpu_page_first_chunk() 3232 if (rc < 0) in pcpu_page_first_chunk() 3233 panic("failed to map percpu area, err=%d\n", rc); in pcpu_page_first_chunk() 3258 rc = -ENOMEM; in pcpu_page_first_chunk() [all …]
|
D | compaction.c | 2645 enum compact_result rc = COMPACT_SKIPPED; in try_to_compact_pages() local 2663 rc = max_t(enum compact_result, COMPACT_DEFERRED, rc); in try_to_compact_pages() 2669 rc = max(status, rc); in try_to_compact_pages() 2703 return rc; in try_to_compact_pages() 2794 int rc, nid; in compaction_proactiveness_sysctl_handler() local 2796 rc = proc_dointvec_minmax(table, write, buffer, length, ppos); in compaction_proactiveness_sysctl_handler() 2797 if (rc) in compaction_proactiveness_sysctl_handler() 2798 return rc; in compaction_proactiveness_sysctl_handler()
|
D | hugetlb.c | 1956 int rc = -EBUSY; in dissolve_free_huge_page() local 1965 rc = 0; in dissolve_free_huge_page() 2006 rc = alloc_huge_page_vmemmap(h, head); in dissolve_free_huge_page() 2007 if (!rc) { in dissolve_free_huge_page() 2025 return rc; in dissolve_free_huge_page() 2029 return rc; in dissolve_free_huge_page() 2044 int rc = 0; in dissolve_free_huge_pages() local 2047 return rc; in dissolve_free_huge_pages() 2051 rc = dissolve_free_huge_page(page); in dissolve_free_huge_pages() 2052 if (rc) in dissolve_free_huge_pages() [all …]
|
D | memory-failure.c | 1616 int rc = -EBUSY; in memory_failure_dev_pagemap() local 1628 rc = -ENXIO; in memory_failure_dev_pagemap() 1644 rc = -EOPNOTSUPP; in memory_failure_dev_pagemap() 1685 rc = 0; in memory_failure_dev_pagemap() 1691 action_result(pfn, MF_MSG_DAX, rc ? MF_FAILED : MF_RECOVERED); in memory_failure_dev_pagemap() 1692 return rc; in memory_failure_dev_pagemap()
|
D | gup.c | 1945 long rc; in __gup_longterm_locked() local 1952 rc = __get_user_pages_locked(mm, start, nr_pages, pages, vmas, in __gup_longterm_locked() 1954 if (rc <= 0) in __gup_longterm_locked() 1956 rc = check_and_migrate_movable_pages(rc, pages, gup_flags); in __gup_longterm_locked() 1957 } while (!rc); in __gup_longterm_locked() 1960 return rc; in __gup_longterm_locked()
|
D | page_alloc.c | 8943 int rc; in postcore_initcall() local 8945 rc = proc_dointvec_minmax(table, write, buffer, length, ppos); in postcore_initcall() 8946 if (rc) in postcore_initcall() 8947 return rc; in postcore_initcall() 8959 int rc; in watermark_scale_factor_sysctl_handler() local 8961 rc = proc_dointvec_minmax(table, write, buffer, length, ppos); in watermark_scale_factor_sysctl_handler() 8962 if (rc) in watermark_scale_factor_sysctl_handler() 8963 return rc; in watermark_scale_factor_sysctl_handler() 8989 int rc; in sysctl_min_unmapped_ratio_sysctl_handler() local 8991 rc = proc_dointvec_minmax(table, write, buffer, length, ppos); in sysctl_min_unmapped_ratio_sysctl_handler() [all …]
|
D | memory.c | 5913 unsigned long i, rc = 0; in copy_huge_page_from_user() local 5923 rc = copy_from_user(page_kaddr, in copy_huge_page_from_user() 5931 ret_val -= (PAGE_SIZE - rc); in copy_huge_page_from_user() 5932 if (rc) in copy_huge_page_from_user()
|
/mm/damon/ |
D | dbgfs.c | 104 int rc; in sprint_schemes() local 107 rc = scnprintf(&buf[written], len - written, in sprint_schemes() 123 if (!rc) in sprint_schemes() 126 written += rc; in sprint_schemes() 288 int rc; in sprint_target_ids() local 296 rc = scnprintf(&buf[written], len - written, "%lu ", id); in sprint_target_ids() 297 if (!rc) in sprint_target_ids() 299 written += rc; in sprint_target_ids() 447 int rc; in sprint_init_regions() local 451 rc = scnprintf(&buf[written], len - written, in sprint_init_regions() [all …]
|
D | dbgfs-test.h | 130 int i, rc; in damon_dbgfs_test_set_init_regions() local 140 rc = set_init_regions(ctx, input, strnlen(input, 256)); in damon_dbgfs_test_set_init_regions() 141 KUNIT_EXPECT_EQ(test, rc, 0); in damon_dbgfs_test_set_init_regions() 152 rc = set_init_regions(ctx, input, strnlen(input, 256)); in damon_dbgfs_test_set_init_regions() 153 KUNIT_EXPECT_EQ(test, rc, -EINVAL); in damon_dbgfs_test_set_init_regions()
|
D | reclaim.c | 369 int rc = param_set_bool(val, kp); in enabled_store() local 371 if (rc < 0) in enabled_store() 372 return rc; in enabled_store()
|
D | vaddr.c | 176 int rc; in damon_va_three_regions() local 183 rc = __damon_va_three_regions(mm->mmap, regions); in damon_va_three_regions() 187 return rc; in damon_va_three_regions()
|