/mm/ |
D | process_vm_access.c | 82 ssize_t rc = 0; in process_vm_rw_single_vec() local 95 while (!rc && nr_pages && iov_iter_count(iter)) { in process_vm_rw_single_vec() 118 rc = process_vm_rw_pages(process_pages, in process_vm_rw_single_vec() 131 return rc; in process_vm_rw_single_vec() 161 ssize_t rc = 0; in process_vm_rw_core() local 199 rc = -ESRCH; in process_vm_rw_core() 205 rc = IS_ERR(mm) ? PTR_ERR(mm) : -ESRCH; in process_vm_rw_core() 210 if (rc == -EACCES) in process_vm_rw_core() 211 rc = -EPERM; in process_vm_rw_core() 215 for (i = 0; i < riovcnt && iov_iter_count(iter) && !rc; i++) in process_vm_rw_core() [all …]
|
D | memory_hotplug.c | 556 int rc = -EINVAL; in set_online_page_callback() local 563 rc = 0; in set_online_page_callback() 569 return rc; in set_online_page_callback() 575 int rc = -EINVAL; in restore_online_page_callback() local 582 rc = 0; in restore_online_page_callback() 588 return rc; in restore_online_page_callback() 1123 int rc; in add_memory() local 1126 rc = __add_memory(nid, start, size, mhp_flags); in add_memory() 1129 return rc; in add_memory() 1203 int rc; in add_memory_driver_managed() local [all …]
|
D | migrate.c | 685 int rc; in migrate_page() local 689 rc = migrate_page_move_mapping(mapping, newpage, page, 0); in migrate_page() 691 if (rc != MIGRATEPAGE_SUCCESS) in migrate_page() 692 return rc; in migrate_page() 746 int rc; in __buffer_migrate_page() local 778 rc = -EAGAIN; in __buffer_migrate_page() 788 rc = migrate_page_move_mapping(mapping, newpage, page, 0); in __buffer_migrate_page() 789 if (rc != MIGRATEPAGE_SUCCESS) in __buffer_migrate_page() 806 rc = MIGRATEPAGE_SUCCESS; in __buffer_migrate_page() 817 return rc; in __buffer_migrate_page() [all …]
|
D | sparse.c | 705 int rc = 0; in fill_subsection_map() local 712 rc = -EINVAL; in fill_subsection_map() 714 rc = -EEXIST; in fill_subsection_map() 719 return rc; in fill_subsection_map() 852 int rc = 0; in section_activate() local 861 rc = fill_subsection_map(pfn, nr_pages); in section_activate() 862 if (rc) { in section_activate() 866 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 | 2846 int group, i, highest_group, rc = 0; in pcpu_embed_first_chunk() local 2858 rc = -ENOMEM; in pcpu_embed_first_chunk() 2876 rc = -ENOMEM; in pcpu_embed_first_chunk() 2896 rc = -EINVAL; in pcpu_embed_first_chunk() 2943 return rc; in pcpu_embed_first_chunk() 2975 int unit, i, j, rc = 0; in pcpu_page_first_chunk() local 3034 rc = __pcpu_map_pages(unit_addr, &pages[unit * unit_pages], in pcpu_page_first_chunk() 3036 if (rc < 0) in pcpu_page_first_chunk() 3037 panic("failed to map percpu area, err=%d\n", rc); in pcpu_page_first_chunk() 3062 rc = -ENOMEM; in pcpu_page_first_chunk() [all …]
|
D | compaction.c | 2513 enum compact_result rc = COMPACT_SKIPPED; in try_to_compact_pages() local 2531 rc = max_t(enum compact_result, COMPACT_DEFERRED, rc); in try_to_compact_pages() 2537 rc = max(status, rc); in try_to_compact_pages() 2571 return rc; in try_to_compact_pages() 2665 int rc, nid; in compaction_proactiveness_sysctl_handler() local 2667 rc = proc_dointvec_minmax(table, write, buffer, length, ppos); in compaction_proactiveness_sysctl_handler() 2668 if (rc) in compaction_proactiveness_sysctl_handler() 2669 return rc; in compaction_proactiveness_sysctl_handler()
|
D | memory-failure.c | 1230 int rc = -EBUSY; in memory_failure_dev_pagemap() local 1242 rc = -ENXIO; in memory_failure_dev_pagemap() 1258 rc = 0; in memory_failure_dev_pagemap() 1299 rc = 0; in memory_failure_dev_pagemap() 1305 action_result(pfn, MF_MSG_DAX, rc ? MF_FAILED : MF_RECOVERED); in memory_failure_dev_pagemap() 1306 return rc; in memory_failure_dev_pagemap()
|
D | hugetlb.c | 1799 int rc = -EBUSY; in dissolve_free_huge_page() local 1808 rc = 0; in dissolve_free_huge_page() 1851 rc = 0; in dissolve_free_huge_page() 1855 return rc; in dissolve_free_huge_page() 1870 int rc = 0; in dissolve_free_huge_pages() local 1873 return rc; in dissolve_free_huge_pages() 1877 rc = dissolve_free_huge_page(page); in dissolve_free_huge_pages() 1878 if (rc) in dissolve_free_huge_pages() 1882 return rc; in dissolve_free_huge_pages() 2292 long rc = vma_needs_reservation(h, vma, address); in restore_reserve_on_error() local [all …]
|
D | gup.c | 1733 long rc; in __gup_longterm_locked() local 1738 rc = __get_user_pages_locked(mm, start, nr_pages, pages, vmas, NULL, in __gup_longterm_locked() 1742 if (rc > 0) in __gup_longterm_locked() 1743 rc = check_and_migrate_cma_pages(mm, start, rc, pages, in __gup_longterm_locked() 1747 return rc; in __gup_longterm_locked()
|
D | page_alloc.c | 8277 int rc; in postcore_initcall() local 8279 rc = proc_dointvec_minmax(table, write, buffer, length, ppos); in postcore_initcall() 8280 if (rc) in postcore_initcall() 8281 return rc; in postcore_initcall() 8293 int rc; in watermark_scale_factor_sysctl_handler() local 8295 rc = proc_dointvec_minmax(table, write, buffer, length, ppos); in watermark_scale_factor_sysctl_handler() 8296 if (rc) in watermark_scale_factor_sysctl_handler() 8297 return rc; in watermark_scale_factor_sysctl_handler() 8323 int rc; in sysctl_min_unmapped_ratio_sysctl_handler() local 8325 rc = proc_dointvec_minmax(table, write, buffer, length, ppos); in sysctl_min_unmapped_ratio_sysctl_handler() [all …]
|
D | memory.c | 5912 unsigned long i, rc = 0; in copy_huge_page_from_user() local 5922 rc = copy_from_user(page_kaddr, in copy_huge_page_from_user() 5930 ret_val -= (PAGE_SIZE - rc); in copy_huge_page_from_user() 5931 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() 444 int rc; in sprint_init_regions() local 448 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()
|