Home
last modified time | relevance | path

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

/mm/
Dshmem.c301 int error; in shmem_add_to_page_cache() local
312 error = radix_tree_insert(&mapping->page_tree, index, page); in shmem_add_to_page_cache()
314 error = shmem_radix_tree_replace(mapping, index, expected, in shmem_add_to_page_cache()
316 if (!error) { in shmem_add_to_page_cache()
326 return error; in shmem_add_to_page_cache()
335 int error; in shmem_delete_from_page_cache() local
338 error = shmem_radix_tree_replace(mapping, page->index, page, radswap); in shmem_delete_from_page_cache()
345 BUG_ON(error); in shmem_delete_from_page_cache()
554 int error; in shmem_setattr() local
556 error = inode_change_ok(inode, attr); in shmem_setattr()
[all …]
Dmadvise.c50 int error = 0; in madvise_behavior() local
69 error = -EINVAL; in madvise_behavior()
79 error = -EINVAL; in madvise_behavior()
86 error = ksm_madvise(vma, start, end, behavior, &new_flags); in madvise_behavior()
87 if (error) in madvise_behavior()
92 error = hugepage_madvise(vma, &new_flags, behavior); in madvise_behavior()
93 if (error) in madvise_behavior()
115 error = split_vma(mm, vma, start, 1); in madvise_behavior()
116 if (error) in madvise_behavior()
121 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()
90 error = vfs_fsync(file, 1); 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()
Dmprotect.c263 int error; in mprotect_fixup() local
302 error = split_vma(mm, vma, start, 1); in mprotect_fixup()
303 if (error) in mprotect_fixup()
308 error = split_vma(mm, vma, end, 0); in mprotect_fixup()
309 if (error) in mprotect_fixup()
332 return error; in mprotect_fixup()
340 int error = -EINVAL; in SYSCALL_DEFINE3() local
369 error = -ENOMEM; in SYSCALL_DEFINE3()
377 error = -EINVAL; in SYSCALL_DEFINE3()
385 error = -EINVAL; in SYSCALL_DEFINE3()
[all …]
Dfilemap.c465 int error; in replace_page_cache_page() local
471 error = radix_tree_preload(gfp_mask & ~__GFP_HIGHMEM); in replace_page_cache_page()
472 if (!error) { in replace_page_cache_page()
485 error = radix_tree_insert(&mapping->page_tree, offset, new); in replace_page_cache_page()
486 BUG_ON(error); in replace_page_cache_page()
499 return error; in replace_page_cache_page()
508 int error; in page_cache_tree_insert() local
510 error = __radix_tree_create(&mapping->page_tree, page->index, in page_cache_tree_insert()
512 if (error) in page_cache_tree_insert()
513 return error; in page_cache_tree_insert()
[all …]
Dfilemap_xip.c63 size_t copied = 0, error = 0; in do_xip_mapping_read() local
96 error = mapping->a_ops->get_xip_mem(mapping, index, 0, in do_xip_mapping_read()
98 if (unlikely(error)) { in do_xip_mapping_read()
99 if (error == -ENODATA) { in do_xip_mapping_read()
128 error = -EFAULT; in do_xip_mapping_read()
143 return (copied ? copied : error); in do_xip_mapping_read()
231 int error; in xip_file_fault() local
239 error = mapping->a_ops->get_xip_mem(mapping, vmf->pgoff, 0, in xip_file_fault()
241 if (likely(!error)) in xip_file_fault()
243 if (error != -ENODATA) in xip_file_fault()
[all …]
Dmmap.c207 goto error; in __vm_enough_memory()
220 goto error; in __vm_enough_memory()
240 error: in __vm_enough_memory()
809 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()
1576 int error; in mmap_region() local
1598 error = -ENOMEM; in mmap_region()
1631 error = -ENOMEM; in mmap_region()
[all …]
Dswap_state.c88 int error; in __add_to_swap_cache() local
101 error = radix_tree_insert(&address_space->page_tree, in __add_to_swap_cache()
103 if (likely(!error)) { in __add_to_swap_cache()
110 if (unlikely(error)) { in __add_to_swap_cache()
116 VM_BUG_ON(error == -EEXIST); in __add_to_swap_cache()
122 return error; in __add_to_swap_cache()
128 int error; in add_to_swap_cache() local
130 error = radix_tree_maybe_preload(gfp_mask); in add_to_swap_cache()
131 if (!error) { in add_to_swap_cache()
132 error = __add_to_swap_cache(page, entry); in add_to_swap_cache()
[all …]
Dmlock.c618 int error; in do_mlock() local
647 error = mlock_fixup(vma, &prev, nstart, tmp, newflags); in do_mlock()
648 if (error) in do_mlock()
658 error = -ENOMEM; in do_mlock()
662 return error; in do_mlock()
732 int error = -ENOMEM; in SYSCALL_DEFINE2() local
752 error = do_mlock(start, len, 1); in SYSCALL_DEFINE2()
755 if (!error) in SYSCALL_DEFINE2()
756 error = __mm_populate(start, len, 0); in SYSCALL_DEFINE2()
757 return error; in SYSCALL_DEFINE2()
Ddebug-pagealloc.c43 unsigned char error = a ^ b; in single_bit_flip() local
45 return error && !(error & (error - 1)); in single_bit_flip()
Dswapfile.c2183 int error; in claim_swapfile() local
2187 error = blkdev_get(p->bdev, in claim_swapfile()
2190 if (error < 0) { in claim_swapfile()
2195 error = set_blocksize(p->bdev, PAGE_SIZE); in claim_swapfile()
2196 if (error < 0) in claim_swapfile()
2197 return error; in claim_swapfile()
2397 int error; in SYSCALL_DEFINE2() local
2422 error = PTR_ERR(name); in SYSCALL_DEFINE2()
2428 error = PTR_ERR(swap_file); in SYSCALL_DEFINE2()
2442 error = -EBUSY; in SYSCALL_DEFINE2()
[all …]
Dslab.c1704 unsigned char error = 0; in dump_line() local
1710 error = data[offset + i]; in dump_line()
1718 error ^= POISON_FREE; in dump_line()
1719 if (!(error & (error - 1))) { in dump_line()
3910 char *error = NULL; in get_slabinfo() local
3922 if (page->active != cachep->num && !error) in get_slabinfo()
3923 error = "slabs_full accounting error"; in get_slabinfo()
3928 if (page->active == cachep->num && !error) in get_slabinfo()
3929 error = "slabs_partial accounting error"; in get_slabinfo()
3930 if (!page->active && !error) in get_slabinfo()
[all …]
Dpercpu-km.c31 #error "contiguous percpu allocation is incompatible with paged first chunk"
Dnommu.c1462 error: in do_mmap_pgoff()
1476 goto error; in do_mmap_pgoff()
1944 goto error; in __vm_enough_memory()
1957 goto error; in __vm_enough_memory()
1978 error: in __vm_enough_memory()
Drmap.c310 int error; in anon_vma_fork() local
323 error = anon_vma_clone(vma, pvma); in anon_vma_fork()
324 if (error) in anon_vma_fork()
325 return error; in anon_vma_fork()
Dzsmalloc.c954 int i, error; in alloc_zspage() local
968 error = -ENOMEM; in alloc_zspage()
1000 error = 0; /* Success */ in alloc_zspage()
1003 if (unlikely(error) && first_page) { in alloc_zspage()
Dzswap.c921 goto error; in init_zswap()
948 error: in init_zswap()
Dmemory_hotplug.c1250 goto error; in add_memory()
1257 goto error; in add_memory()
1277 error: in add_memory()
Dmemblock.c1180 goto error; in memblock_virt_alloc_internal()
1198 error: in memblock_virt_alloc_internal()
Dksm.c792 goto error; in unmerge_and_remove_all_rmap_items()
820 error: in unmerge_and_remove_all_rmap_items()
Dslub.c3104 goto error; in kmem_cache_open()
3114 goto error; in kmem_cache_open()
3163 goto error; in kmem_cache_open()
3169 error: in kmem_cache_open()
Dvmscan.c482 struct page *page, int error) in handle_write_error() argument
486 mapping_set_error(mapping, error); in handle_write_error()
Dmemcontrol.c5400 long error = -ENOMEM; in mem_cgroup_css_alloc() local
5405 return ERR_PTR(error); in mem_cgroup_css_alloc()
5432 return ERR_PTR(error); in mem_cgroup_css_alloc()
DKconfig517 This option does not affect warning and error messages.