Home
last modified time | relevance | path

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

12345678910>>...25

/fs/btrfs/tests/
Dfree-space-tests.c22 int ret = 0; in test_extents() local
27 ret = btrfs_add_free_space(cache, 0, SZ_4M); in test_extents()
28 if (ret) { in test_extents()
29 test_err("error adding initial extents %d", ret); in test_extents()
30 return ret; in test_extents()
33 ret = btrfs_remove_free_space(cache, 0, SZ_4M); in test_extents()
34 if (ret) { in test_extents()
35 test_err("error removing extent %d", ret); in test_extents()
36 return ret; in test_extents()
45 ret = btrfs_add_free_space(cache, 0, SZ_4M); in test_extents()
[all …]
Dqgroup-tests.c25 int ret; in insert_normal_tree_ref() local
40 ret = btrfs_insert_empty_item(&trans, root, path, &ins, size); in insert_normal_tree_ref()
41 if (ret) { in insert_normal_tree_ref()
42 test_err("couldn't insert ref %d", ret); in insert_normal_tree_ref()
44 return ret; in insert_normal_tree_ref()
75 int ret; in add_tree_ref() local
90 ret = btrfs_search_slot(&trans, root, &key, path, 0, 1); in add_tree_ref()
91 if (ret) { in add_tree_ref()
94 return ret; in add_tree_ref()
112 ret = btrfs_insert_empty_item(&trans, root, path, &key, 0); in add_tree_ref()
[all …]
Dfree-space-tree-tests.c32 int ret; in __check_free_space_extents() local
37 ret = PTR_ERR(info); in __check_free_space_extents()
45 ret = -EINVAL; in __check_free_space_extents()
98 ret = 0; in __check_free_space_extents()
101 return ret; in __check_free_space_extents()
104 ret = -EINVAL; in __check_free_space_extents()
117 int ret; in check_free_space_extents() local
128 ret = __check_free_space_extents(trans, fs_info, cache, path, extents, in check_free_space_extents()
130 if (ret) in check_free_space_extents()
131 return ret; in check_free_space_extents()
[all …]
Dextent-map-tests.c56 int ret; in test_case_1() local
70 ret = add_extent_mapping(em_tree, em, 0); in test_case_1()
72 if (ret < 0) { in test_case_1()
82 ret = -ENOMEM; in test_case_1()
91 ret = add_extent_mapping(em_tree, em, 0); in test_case_1()
93 if (ret < 0) { in test_case_1()
102 ret = -ENOMEM; in test_case_1()
112 ret = btrfs_add_extent_mapping(fs_info, em_tree, &em, em->start, em->len); in test_case_1()
114 if (ret) { in test_case_1()
115 test_err("case1 [%llu %llu]: ret %d", start, start + len, ret); in test_case_1()
[all …]
/fs/btrfs/
Dsend.c265 int ret; member
440 int ret; in fs_path_prepare_for_add() local
446 ret = fs_path_ensure_buf(p, new_len); in fs_path_prepare_for_add()
447 if (ret < 0) in fs_path_prepare_for_add()
464 return ret; in fs_path_prepare_for_add()
469 int ret; in fs_path_add() local
472 ret = fs_path_prepare_for_add(p, name_len, &prepared); in fs_path_add()
473 if (ret < 0) in fs_path_add()
478 return ret; in fs_path_add()
483 int ret; in fs_path_add_path() local
[all …]
Dtree-log.c142 int ret = 0; in start_log_trans() local
148 ret = -EAGAIN; in start_log_trans()
161 ret = btrfs_init_log_root_tree(trans, fs_info); in start_log_trans()
163 if (ret) in start_log_trans()
166 ret = btrfs_add_log_tree(trans, root); in start_log_trans()
167 if (ret) in start_log_trans()
184 return ret; in start_log_trans()
194 int ret = -ENOENT; in join_running_log_trans() local
198 ret = 0; in join_running_log_trans()
202 return ret; in join_running_log_trans()
[all …]
Dioctl.c194 int ret; in btrfs_ioctl_setflags() local
207 ret = check_fsflags(fsflags); in btrfs_ioctl_setflags()
208 if (ret) in btrfs_ioctl_setflags()
209 return ret; in btrfs_ioctl_setflags()
211 ret = mnt_want_write_file(file); in btrfs_ioctl_setflags()
212 if (ret) in btrfs_ioctl_setflags()
213 return ret; in btrfs_ioctl_setflags()
219 ret = vfs_ioc_setflags_prepare(inode, old_fsflags, fsflags); in btrfs_ioctl_setflags()
220 if (ret) in btrfs_ioctl_setflags()
284 ret = -ETXTBSY; in btrfs_ioctl_setflags()
[all …]
Duuid-tree.c25 int ret; in btrfs_uuid_tree_lookup() local
34 ret = -ENOENT; in btrfs_uuid_tree_lookup()
40 ret = -ENOMEM; in btrfs_uuid_tree_lookup()
45 ret = btrfs_search_slot(NULL, uuid_root, &key, path, 0, 0); in btrfs_uuid_tree_lookup()
46 if (ret < 0) { in btrfs_uuid_tree_lookup()
48 } else if (ret > 0) { in btrfs_uuid_tree_lookup()
49 ret = -ENOENT; in btrfs_uuid_tree_lookup()
57 ret = -ENOENT; in btrfs_uuid_tree_lookup()
70 ret = 0; in btrfs_uuid_tree_lookup()
79 return ret; in btrfs_uuid_tree_lookup()
[all …]
Dfree-space-tree.c55 int ret; in add_new_free_space_info() local
61 ret = btrfs_insert_empty_item(trans, root, path, &key, sizeof(*info)); in add_new_free_space_info()
62 if (ret) in add_new_free_space_info()
72 ret = 0; in add_new_free_space_info()
75 return ret; in add_new_free_space_info()
87 int ret; in search_free_space_info() local
93 ret = btrfs_search_slot(trans, root, &key, path, 0, cow); in search_free_space_info()
94 if (ret < 0) in search_free_space_info()
95 return ERR_PTR(ret); in search_free_space_info()
96 if (ret != 0) { in search_free_space_info()
[all …]
Dqgroup.c46 u64 ret = 0; in qgroup_rsv_total() local
50 ret += qgroup->rsv.values[i]; in qgroup_rsv_total()
52 return ret; in qgroup_rsv_total()
335 int ret = 0; in btrfs_read_qgroup_config() local
344 ret = -ENOMEM; in btrfs_read_qgroup_config()
350 ret = -ENOMEM; in btrfs_read_qgroup_config()
363 ret = btrfs_search_slot_for_read(quota_root, &key, path, 1, 1); in btrfs_read_qgroup_config()
364 if (ret) in btrfs_read_qgroup_config()
411 ret = PTR_ERR(qgroup); in btrfs_read_qgroup_config()
442 ret = btrfs_next_item(quota_root, path); in btrfs_read_qgroup_config()
[all …]
/fs/nilfs2/
Dioctl.c56 int ret, i; in nilfs_ioctl_wrap_copy() local
78 ret = 0; in nilfs_ioctl_wrap_copy()
87 ret = -EFAULT; in nilfs_ioctl_wrap_copy()
94 ret = nr; in nilfs_ioctl_wrap_copy()
100 ret = -EFAULT; in nilfs_ioctl_wrap_copy()
112 return ret; in nilfs_ioctl_wrap_copy()
133 int ret; in nilfs_ioctl_setflags() local
141 ret = mnt_want_write_file(filp); in nilfs_ioctl_setflags()
142 if (ret) in nilfs_ioctl_setflags()
143 return ret; in nilfs_ioctl_setflags()
[all …]
Dbmap.c66 int ret; in nilfs_bmap_lookup_at_level() local
69 ret = bmap->b_ops->bop_lookup(bmap, key, level, ptrp); in nilfs_bmap_lookup_at_level()
70 if (ret < 0) { in nilfs_bmap_lookup_at_level()
71 ret = nilfs_bmap_convert_error(bmap, __func__, ret); in nilfs_bmap_lookup_at_level()
75 ret = nilfs_dat_translate(nilfs_bmap_get_dat(bmap), *ptrp, in nilfs_bmap_lookup_at_level()
77 if (!ret) in nilfs_bmap_lookup_at_level()
83 return ret; in nilfs_bmap_lookup_at_level()
89 int ret; in nilfs_bmap_lookup_contig() local
92 ret = bmap->b_ops->bop_lookup_contig(bmap, key, ptrp, maxblocks); in nilfs_bmap_lookup_contig()
95 return nilfs_bmap_convert_error(bmap, __func__, ret); in nilfs_bmap_lookup_contig()
[all …]
/fs/ocfs2/
Drefcounttree.c326 int ret = 0; in ocfs2_get_refcount_tree() local
344 ret = -ENOMEM; in ocfs2_get_refcount_tree()
345 mlog_errno(ret); in ocfs2_get_refcount_tree()
346 return ret; in ocfs2_get_refcount_tree()
356 ret = ocfs2_read_refcount_block(&new->rf_ci, rf_blkno, &ref_root_bh); in ocfs2_get_refcount_tree()
357 if (ret) { in ocfs2_get_refcount_tree()
358 mlog_errno(ret); in ocfs2_get_refcount_tree()
361 return ret; in ocfs2_get_refcount_tree()
391 return ret; in ocfs2_get_refcount_tree()
396 int ret; in ocfs2_get_refcount_block() local
[all …]
Dxattr.c584 int ret = 0; in ocfs2_calc_security_init() local
596 ret = ocfs2_reserve_new_metadata_blocks(osb, 1, xattr_ac); in ocfs2_calc_security_init()
597 if (ret) { in ocfs2_calc_security_init()
598 mlog_errno(ret); in ocfs2_calc_security_init()
599 return ret; in ocfs2_calc_security_init()
613 return ret; in ocfs2_calc_security_init()
624 int ret = 0; in ocfs2_calc_xattr_init() local
643 ret = acl_len; in ocfs2_calc_xattr_init()
644 mlog_errno(ret); in ocfs2_calc_xattr_init()
645 return ret; in ocfs2_calc_xattr_init()
[all …]
Dfile.c174 int ret; in ocfs2_sync_file() local
197 ret = blkdev_issue_flush(inode->i_sb->s_bdev, GFP_KERNEL, NULL); in ocfs2_sync_file()
199 err = ret; in ocfs2_sync_file()
254 int ret; in ocfs2_update_inode_atime() local
261 ret = PTR_ERR(handle); in ocfs2_update_inode_atime()
262 mlog_errno(ret); in ocfs2_update_inode_atime()
266 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), bh, in ocfs2_update_inode_atime()
268 if (ret) { in ocfs2_update_inode_atime()
269 mlog_errno(ret); in ocfs2_update_inode_atime()
287 return ret; in ocfs2_update_inode_atime()
[all …]
Dmove_extents.c56 int ret = 0, index; in __ocfs2_move_extent() local
65 ret = ocfs2_duplicate_clusters_by_page(handle, inode, cpos, in __ocfs2_move_extent()
67 if (ret) { in __ocfs2_move_extent()
68 mlog_errno(ret); in __ocfs2_move_extent()
80 ret = -ENOMEM; in __ocfs2_move_extent()
81 mlog_errno(ret); in __ocfs2_move_extent()
85 ret = ocfs2_find_path(INODE_CACHE(inode), path, cpos); in __ocfs2_move_extent()
86 if (ret) { in __ocfs2_move_extent()
87 mlog_errno(ret); in __ocfs2_move_extent()
95 ret = ocfs2_error(inode->i_sb, in __ocfs2_move_extent()
[all …]
Dalloc.c548 int ret = 0; in ocfs2_et_insert_check() local
551 ret = et->et_ops->eo_insert_check(et, rec); in ocfs2_et_insert_check()
552 return ret; in ocfs2_et_insert_check()
557 int ret = 0; in ocfs2_et_sanity_check() local
560 ret = et->et_ops->eo_sanity_check(et); in ocfs2_et_sanity_check()
561 return ret; in ocfs2_et_sanity_check()
745 int i, ret = 0; in ocfs2_journal_access_path() local
751 ret = ocfs2_path_bh_journal_access(handle, ci, path, i); in ocfs2_journal_access_path()
752 if (ret < 0) { in ocfs2_journal_access_path()
753 mlog_errno(ret); in ocfs2_journal_access_path()
[all …]
Daops.c127 int ret = 0; in ocfs2_lock_get_block() local
131 ret = ocfs2_get_block(inode, iblock, bh_result, create); in ocfs2_lock_get_block()
134 return ret; in ocfs2_lock_get_block()
261 int ret; in ocfs2_readpage_inline() local
267 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_readpage_inline()
268 if (ret) { in ocfs2_readpage_inline()
269 mlog_errno(ret); in ocfs2_readpage_inline()
273 ret = ocfs2_read_inline_data(inode, page, di_bh); in ocfs2_readpage_inline()
278 return ret; in ocfs2_readpage_inline()
286 int ret, unlock = 1; in ocfs2_readpage() local
[all …]
Ddir.c157 int ret; in ocfs2_dx_dir_link_trailer() local
161 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_dx_dir_link_trailer()
163 if (ret) { in ocfs2_dx_dir_link_trailer()
164 mlog_errno(ret); in ocfs2_dx_dir_link_trailer()
176 return ret; in ocfs2_dx_dir_link_trailer()
352 int ret = 0; in ocfs2_search_dirblock() local
367 ret = -1; in ocfs2_search_dirblock()
371 ret = 1; in ocfs2_search_dirblock()
378 ret = -1; in ocfs2_search_dirblock()
387 trace_ocfs2_search_dirblock(ret); in ocfs2_search_dirblock()
[all …]
/fs/cachefiles/
Dxattr.c29 int ret; in cachefiles_check_object_type() local
42 ret = vfs_setxattr(dentry, cachefiles_xattr_cache, type, 2, in cachefiles_check_object_type()
44 if (ret == 0) { in cachefiles_check_object_type()
49 if (ret != -EEXIST) { in cachefiles_check_object_type()
52 -ret); in cachefiles_check_object_type()
57 ret = vfs_getxattr(dentry, cachefiles_xattr_cache, xtype, 3); in cachefiles_check_object_type()
58 if (ret < 0) { in cachefiles_check_object_type()
59 if (ret == -ERANGE) in cachefiles_check_object_type()
64 -ret); in cachefiles_check_object_type()
69 if (ret != 2) in cachefiles_check_object_type()
[all …]
Dsecurity.c19 int ret; in cachefiles_get_security_ID() local
25 ret = -ENOMEM; in cachefiles_get_security_ID()
30 ret = set_security_override_from_ctx(new, cache->secctx); in cachefiles_get_security_ID()
31 if (ret < 0) { in cachefiles_get_security_ID()
34 ret); in cachefiles_get_security_ID()
40 ret = 0; in cachefiles_get_security_ID()
42 _leave(" = %d", ret); in cachefiles_get_security_ID()
43 return ret; in cachefiles_get_security_ID()
52 int ret; in cachefiles_check_cache_dir() local
54 ret = security_inode_mkdir(d_backing_inode(root), root, 0); in cachefiles_check_cache_dir()
[all …]
/fs/orangefs/
Dfile.c23 int ret; in flush_racache() local
35 ret = service_operation(new_op, "orangefs_flush_racache", in flush_racache()
39 __func__, ret); in flush_racache()
42 return ret; in flush_racache()
56 ssize_t ret; in wait_for_direct_io() local
72 ret = buffer_index; in wait_for_direct_io()
75 __func__, ret); in wait_for_direct_io()
104 ret = orangefs_bufmap_copy_from_iovec(iter, buffer_index, in wait_for_direct_io()
106 if (ret < 0) { in wait_for_direct_io()
108 __func__, (long)ret); in wait_for_direct_io()
[all …]
/fs/
Dread_write.c408 ssize_t ret; in new_sync_read() local
414 ret = call_read_iter(filp, &kiocb, &iter); in new_sync_read()
415 BUG_ON(ret == -EIOCBQUEUED); in new_sync_read()
418 return ret; in new_sync_read()
448 ssize_t ret; in vfs_read() local
457 ret = rw_verify_area(READ, file, pos, count); in vfs_read()
458 if (!ret) { in vfs_read()
461 ret = __vfs_read(file, buf, count, pos); in vfs_read()
462 if (ret > 0) { in vfs_read()
464 add_rchar(current, ret); in vfs_read()
[all …]
Dsplice.c188 int ret = 0, page_nr = 0; in splice_to_pipe() local
195 ret = -EPIPE; in splice_to_pipe()
212 ret += buf->len; in splice_to_pipe()
218 if (!ret) in splice_to_pipe()
219 ret = -EAGAIN; in splice_to_pipe()
225 return ret; in splice_to_pipe()
231 int ret; in add_to_pipe() local
235 ret = -EPIPE; in add_to_pipe()
237 ret = -EAGAIN; in add_to_pipe()
245 return ret; in add_to_pipe()
[all …]
/fs/nfs/
Dnfs4idmap.c200 int ret = 0; in nfs_idmap_init() local
215 ret = PTR_ERR(keyring); in nfs_idmap_init()
219 ret = register_key_type(&key_type_id_resolver); in nfs_idmap_init()
220 if (ret < 0) in nfs_idmap_init()
223 ret = register_key_type(&key_type_id_resolver_legacy); in nfs_idmap_init()
224 if (ret < 0) in nfs_idmap_init()
239 return ret; in nfs_idmap_init()
283 ssize_t ret; in nfs_idmap_request_key() local
285 ret = nfs_idmap_get_desc(name, namelen, type, strlen(type), &desc); in nfs_idmap_request_key()
286 if (ret < 0) in nfs_idmap_request_key()
[all …]

12345678910>>...25