Home
last modified time | relevance | path

Searched refs:error (Results 1 – 23 of 23) sorted by relevance

/mm/
Dshmem.c554 int error, nr = hpage_nr_pages(page); in shmem_add_to_page_cache() local
572 error = 0; in shmem_add_to_page_cache()
576 error = -EEXIST; in shmem_add_to_page_cache()
579 if (!error) { in shmem_add_to_page_cache()
581 error = radix_tree_insert(&mapping->page_tree, in shmem_add_to_page_cache()
583 VM_BUG_ON(error); in shmem_add_to_page_cache()
588 error = radix_tree_insert(&mapping->page_tree, index, page); in shmem_add_to_page_cache()
590 error = shmem_radix_tree_replace(mapping, index, expected, in shmem_add_to_page_cache()
594 if (!error) { in shmem_add_to_page_cache()
606 return error; in shmem_add_to_page_cache()
[all …]
Dmadvise.c56 int error = 0; in madvise_behavior() local
75 error = -EINVAL; in madvise_behavior()
85 error = -EINVAL; in madvise_behavior()
92 error = ksm_madvise(vma, start, end, behavior, &new_flags); in madvise_behavior()
93 if (error) in madvise_behavior()
98 error = hugepage_madvise(vma, &new_flags, behavior); in madvise_behavior()
99 if (error) in madvise_behavior()
121 error = split_vma(mm, vma, start, 1); in madvise_behavior()
122 if (error) in madvise_behavior()
127 error = split_vma(mm, vma, end, 0); in madvise_behavior()
[all …]
Dmsync.c37 int error = -EINVAL; in SYSCALL_DEFINE3() local
45 error = -ENOMEM; in SYSCALL_DEFINE3()
50 error = 0; in SYSCALL_DEFINE3()
64 error = -ENOMEM; in SYSCALL_DEFINE3()
77 error = -EBUSY; in SYSCALL_DEFINE3()
89 error = vfs_fsync_range(file, fstart, fend, 1); in SYSCALL_DEFINE3()
91 if (error || start >= end) in SYSCALL_DEFINE3()
97 error = 0; in SYSCALL_DEFINE3()
106 return error ? : unmapped_error; in SYSCALL_DEFINE3()
Dmprotect.c272 int error; in mprotect_fixup() local
316 error = split_vma(mm, vma, start, 1); in mprotect_fixup()
317 if (error) in mprotect_fixup()
322 error = split_vma(mm, vma, end, 0); in mprotect_fixup()
323 if (error) in mprotect_fixup()
355 return error; in mprotect_fixup()
366 int error = -EINVAL; in do_mprotect_pkey() local
395 error = -EINVAL; in do_mprotect_pkey()
400 error = -ENOMEM; in do_mprotect_pkey()
408 error = -EINVAL; in do_mprotect_pkey()
[all …]
Dfilemap.c118 int error; in page_cache_tree_insert() local
120 error = __radix_tree_create(&mapping->page_tree, page->index, 0, in page_cache_tree_insert()
122 if (error) in page_cache_tree_insert()
123 return error; in page_cache_tree_insert()
613 int error; in replace_page_cache_page() local
619 error = radix_tree_preload(gfp_mask & GFP_RECLAIM_MASK); in replace_page_cache_page()
620 if (!error) { in replace_page_cache_page()
634 error = page_cache_tree_insert(mapping, new, NULL); in replace_page_cache_page()
635 BUG_ON(error); in replace_page_cache_page()
652 return error; in replace_page_cache_page()
[all …]
Dswap_state.c83 int error; in __add_to_swap_cache() local
96 error = radix_tree_insert(&address_space->page_tree, in __add_to_swap_cache()
98 if (likely(!error)) { in __add_to_swap_cache()
105 if (unlikely(error)) { in __add_to_swap_cache()
111 VM_BUG_ON(error == -EEXIST); in __add_to_swap_cache()
117 return error; in __add_to_swap_cache()
123 int error; in add_to_swap_cache() local
125 error = radix_tree_maybe_preload(gfp_mask); in add_to_swap_cache()
126 if (!error) { in add_to_swap_cache()
127 error = __add_to_swap_cache(page, entry); in add_to_swap_cache()
[all …]
Dmmap.c768 int error; in __vma_adjust() local
771 error = anon_vma_clone(importer, exporter); in __vma_adjust()
772 if (error) in __vma_adjust()
773 return error; in __vma_adjust()
1613 int error; in mmap_region() local
1664 error = -ENOMEM; in mmap_region()
1678 error = deny_write_access(file); in mmap_region()
1679 if (error) in mmap_region()
1683 error = mapping_map_writable(file->f_mapping); in mmap_region()
1684 if (error) in mmap_region()
[all …]
Dmlock.c582 int error; in apply_vma_lock_flags() local
608 error = mlock_fixup(vma, &prev, nstart, tmp, newflags); in apply_vma_lock_flags()
609 if (error) in apply_vma_lock_flags()
619 error = -ENOMEM; in apply_vma_lock_flags()
623 return error; in apply_vma_lock_flags()
669 int error = -ENOMEM; in do_mlock() local
700 error = apply_vma_lock_flags(start, len, flags); in do_mlock()
703 if (error) in do_mlock()
704 return error; in do_mlock()
706 error = __mm_populate(start, len, 0); in do_mlock()
[all …]
Dpage_poison.c104 unsigned char error = a ^ b; in single_bit_flip() local
106 return error && !(error & (error - 1)); in single_bit_flip()
Dswapfile.c2196 int error; in claim_swapfile() local
2200 error = blkdev_get(p->bdev, in claim_swapfile()
2202 if (error < 0) { in claim_swapfile()
2204 return error; in claim_swapfile()
2207 error = set_blocksize(p->bdev, PAGE_SIZE); in claim_swapfile()
2208 if (error < 0) in claim_swapfile()
2209 return error; in claim_swapfile()
2395 int error; in SYSCALL_DEFINE2() local
2420 error = PTR_ERR(name); in SYSCALL_DEFINE2()
2426 error = PTR_ERR(swap_file); in SYSCALL_DEFINE2()
[all …]
Dslab.c1581 unsigned char error = 0; in dump_line() local
1587 error = data[offset + i]; in dump_line()
1595 error ^= POISON_FREE; in dump_line()
1596 if (!(error & (error - 1))) { in dump_line()
3603 goto error; in kmem_cache_alloc_bulk()
3618 error: in kmem_cache_alloc_bulk()
4114 char *error = NULL; in get_slabinfo() local
4128 if (page->active == cachep->num && !error) in get_slabinfo()
4129 error = "slabs_partial accounting error"; in get_slabinfo()
4130 if (!page->active && !error) in get_slabinfo()
[all …]
Dutil.c582 goto error; in __vm_enough_memory()
595 goto error; in __vm_enough_memory()
615 error: in __vm_enough_memory()
Dzswap.c594 goto error; in zswap_pool_create()
602 goto error; in zswap_pool_create()
606 goto error; in zswap_pool_create()
619 error: in zswap_pool_create()
Dpercpu-km.c31 #error "contiguous percpu allocation is incompatible with paged first chunk"
Drmap.c316 int error; in anon_vma_fork() local
329 error = anon_vma_clone(vma, pvma); in anon_vma_fork()
330 if (error) in anon_vma_fork()
331 return error; in anon_vma_fork()
Dnobootmem.c26 #error CONFIG_HAVE_MEMBLOCK not defined
Dmemory_hotplug.c1378 goto error; in add_memory_resource()
1385 goto error; in add_memory_resource()
1410 error: in add_memory_resource()
Dslub.c3124 goto error; in kmem_cache_alloc_bulk()
3146 error: in kmem_cache_alloc_bulk()
3541 goto error; in kmem_cache_open()
3551 goto error; in kmem_cache_open()
3603 goto error; in kmem_cache_open()
3607 goto error; in kmem_cache_open()
3613 error: in kmem_cache_open()
Dnommu.c1396 error: in do_mmap()
1409 goto error; in do_mmap()
Dksm.c787 goto error; in unmerge_and_remove_all_rmap_items()
813 error: in unmerge_and_remove_all_rmap_items()
Dmemcontrol.c4222 long error = -ENOMEM; in mem_cgroup_css_alloc() local
4226 return ERR_PTR(error); in mem_cgroup_css_alloc()
4262 error = memcg_online_kmem(memcg); in mem_cgroup_css_alloc()
4263 if (error) in mem_cgroup_css_alloc()
Dvmscan.c567 struct page *page, int error) in handle_write_error() argument
571 mapping_set_error(mapping, error); in handle_write_error()
DKconfig528 This option does not affect warning and error messages.