Home
last modified time | relevance | path

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

/mm/
Dmemfd.c70 int error, scan; in memfd_wait_for_pins() local
74 error = 0; in memfd_wait_for_pins()
100 error = -EBUSY; in memfd_wait_for_pins()
117 return error; in memfd_wait_for_pins()
143 int error; in memfd_add_seals() local
185 error = -EINVAL; in memfd_add_seals()
190 error = -EPERM; in memfd_add_seals()
195 error = mapping_deny_writable(file->f_mapping); in memfd_add_seals()
196 if (error) in memfd_add_seals()
199 error = memfd_wait_for_pins(file->f_mapping); in memfd_add_seals()
[all …]
Dmemremap.c168 int error, is_ram; in memremap_pages() local
203 error = percpu_ref_init(&pgmap->internal_ref, in memremap_pages()
205 if (error) in memremap_pages()
206 return ERR_PTR(error); in memremap_pages()
216 error = devmap_managed_enable_get(pgmap); in memremap_pages()
217 if (error) in memremap_pages()
218 return ERR_PTR(error); in memremap_pages()
225 error = -ENOMEM; in memremap_pages()
233 error = -ENOMEM; in memremap_pages()
243 error = -ENXIO; in memremap_pages()
[all …]
Dshmem.c665 int error; in shmem_delete_from_page_cache() local
670 error = shmem_replace_entry(mapping, page->index, page, radswap); in shmem_delete_from_page_cache()
677 BUG_ON(error); in shmem_delete_from_page_cache()
1022 int error; in shmem_setattr() local
1024 error = setattr_prepare(dentry, attr); in shmem_setattr()
1025 if (error) in shmem_setattr()
1026 return error; in shmem_setattr()
1038 error = shmem_reacct_size(SHMEM_I(inode)->flags, in shmem_setattr()
1040 if (error) in shmem_setattr()
1041 return error; in shmem_setattr()
[all …]
Dmadvise.c70 int error = 0; in madvise_behavior() local
89 error = -EINVAL; in madvise_behavior()
97 error = -EINVAL; in madvise_behavior()
110 error = -EINVAL; in madvise_behavior()
117 error = ksm_madvise(vma, start, end, behavior, &new_flags); in madvise_behavior()
118 if (error) in madvise_behavior()
123 error = hugepage_madvise(vma, &new_flags, behavior); in madvise_behavior()
124 if (error) in madvise_behavior()
147 error = -ENOMEM; in madvise_behavior()
150 error = __split_vma(mm, vma, start, 1); in madvise_behavior()
[all …]
Dmprotect.c347 int error; in mprotect_fixup() local
365 error = walk_page_range(current->mm, start, end, in mprotect_fixup()
367 if (error) in mprotect_fixup()
368 return error; in mprotect_fixup()
407 error = split_vma(mm, vma, start, 1); in mprotect_fixup()
408 if (error) in mprotect_fixup()
413 error = split_vma(mm, vma, end, 0); in mprotect_fixup()
414 if (error) in mprotect_fixup()
446 return error; in mprotect_fixup()
457 int error = -EINVAL; in do_mprotect_pkey() local
[all …]
Dmsync.c38 int error = -EINVAL; in SYSCALL_DEFINE3() local
48 error = -ENOMEM; in SYSCALL_DEFINE3()
53 error = 0; in SYSCALL_DEFINE3()
67 error = -ENOMEM; in SYSCALL_DEFINE3()
80 error = -EBUSY; in SYSCALL_DEFINE3()
92 error = vfs_fsync_range(file, fstart, fend, 1); in SYSCALL_DEFINE3()
94 if (error || start >= end) in SYSCALL_DEFINE3()
100 error = 0; in SYSCALL_DEFINE3()
109 return error ? : unmapped_error; in SYSCALL_DEFINE3()
Dmmap.c809 int error; in __vma_adjust() local
812 error = anon_vma_clone(importer, exporter); in __vma_adjust()
813 if (error) in __vma_adjust()
814 return error; in __vma_adjust()
1730 int error; in mmap_region() local
1781 error = -ENOMEM; in mmap_region()
1793 error = deny_write_access(file); in mmap_region()
1794 if (error) in mmap_region()
1798 error = mapping_map_writable(file->f_mapping); in mmap_region()
1799 if (error) in mmap_region()
[all …]
Dmlock.c588 int error; in apply_vma_lock_flags() local
614 error = mlock_fixup(vma, &prev, nstart, tmp, newflags); in apply_vma_lock_flags()
615 if (error) in apply_vma_lock_flags()
625 error = -ENOMEM; in apply_vma_lock_flags()
629 return error; in apply_vma_lock_flags()
675 int error = -ENOMEM; in do_mlock() local
706 error = apply_vma_lock_flags(start, len, flags); in do_mlock()
709 if (error) in do_mlock()
710 return error; in do_mlock()
712 error = __mm_populate(start, len, 0); in do_mlock()
[all …]
Dfilemap.c858 int error; in __add_to_page_cache_locked() local
866 error = mem_cgroup_try_charge(page, current->mm, in __add_to_page_cache_locked()
868 if (error) in __add_to_page_cache_locked()
869 return error; in __add_to_page_cache_locked()
900 goto error; in __add_to_page_cache_locked()
906 error: in __add_to_page_cache_locked()
2022 int error = 0; in generic_file_buffered_read() local
2043 error = -EINTR; in generic_file_buffered_read()
2074 error = wait_on_page_locked_killable(page); in generic_file_buffered_read()
2075 if (unlikely(error)) in generic_file_buffered_read()
[all …]
Dpage_poison.c61 unsigned char error = a ^ b; in single_bit_flip() local
63 return error && !(error & (error - 1)); in single_bit_flip()
Dswapfile.c2876 int error; in claim_swapfile() local
2880 error = blkdev_get(p->bdev, in claim_swapfile()
2882 if (error < 0) { in claim_swapfile()
2884 return error; in claim_swapfile()
2887 error = set_blocksize(p->bdev, PAGE_SIZE); in claim_swapfile()
2888 if (error < 0) in claim_swapfile()
2889 return error; in claim_swapfile()
3109 int error; in SYSCALL_DEFINE2() local
3138 error = PTR_ERR(name); in SYSCALL_DEFINE2()
3144 error = PTR_ERR(swap_file); in SYSCALL_DEFINE2()
[all …]
Dpage-writeback.c2164 int error; in write_cache_pages() local
2238 error = (*writepage)(page, wbc, data); in write_cache_pages()
2239 if (unlikely(error)) { in write_cache_pages()
2252 if (error == AOP_WRITEPAGE_ACTIVATE) { in write_cache_pages()
2254 error = 0; in write_cache_pages()
2256 ret = error; in write_cache_pages()
2262 ret = error; in write_cache_pages()
Dzswap.c532 goto error; in zswap_pool_create()
540 goto error; in zswap_pool_create()
546 goto error; in zswap_pool_create()
559 error: in zswap_pool_create()
Dpercpu-km.c30 #error "contiguous percpu allocation is incompatible with paged first chunk"
Dmemory_hotplug.c1052 goto error; in add_memory_resource()
1058 goto error; in add_memory_resource()
1064 goto error; in add_memory_resource()
1093 error: in add_memory_resource()
Drmap.c320 int error; in anon_vma_fork() local
333 error = anon_vma_clone(vma, pvma); in anon_vma_fork()
334 if (error) in anon_vma_fork()
335 return error; in anon_vma_fork()
Dutil.c805 goto error; in __vm_enough_memory()
827 error: in __vm_enough_memory()
Dslab.c1452 unsigned char error = 0; in dump_line() local
1458 error = data[offset + i]; in dump_line()
1466 error ^= POISON_FREE; in dump_line()
1467 if (!(error & (error - 1))) { in dump_line()
3518 goto error; in kmem_cache_alloc_bulk()
3533 error: in kmem_cache_alloc_bulk()
DKconfig.debug24 use-after-free). The error reports for these checks can be augmented
Dslub.c3164 goto error; in kmem_cache_alloc_bulk()
3189 error: in kmem_cache_alloc_bulk()
3621 goto error; in kmem_cache_open()
3631 goto error; in kmem_cache_open()
3657 goto error; in kmem_cache_open()
3661 goto error; in kmem_cache_open()
3667 error: in kmem_cache_open()
Dnommu.c1291 error: in do_mmap()
1304 goto error; in do_mmap()
Dksm.c988 goto error; in unmerge_and_remove_all_rmap_items()
1014 error: in unmerge_and_remove_all_rmap_items()
Dmemcontrol.c5097 long error = -ENOMEM; in mem_cgroup_css_alloc() local
5101 return ERR_PTR(error); in mem_cgroup_css_alloc()
5140 error = memcg_online_kmem(memcg); in mem_cgroup_css_alloc()
5141 if (error) in mem_cgroup_css_alloc()
Dvmscan.c802 struct page *page, int error) in handle_write_error() argument
806 mapping_set_error(mapping, error); in handle_write_error()
DKconfig494 This option does not affect warning and error messages.