Home
last modified time | relevance | path

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

12345678910>>...26

/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()
96 ret = 0; in __check_free_space_extents()
99 return ret; in __check_free_space_extents()
102 ret = -EINVAL; in __check_free_space_extents()
115 int ret; in check_free_space_extents() local
126 ret = __check_free_space_extents(trans, fs_info, cache, path, extents, in check_free_space_extents()
128 if (ret) in check_free_space_extents()
129 return ret; in check_free_space_extents()
[all …]
Dextent-map-tests.c59 int ret; in test_case_1() local
73 ret = add_extent_mapping(em_tree, em, 0); in test_case_1()
75 if (ret < 0) { in test_case_1()
85 ret = -ENOMEM; in test_case_1()
94 ret = add_extent_mapping(em_tree, em, 0); in test_case_1()
96 if (ret < 0) { in test_case_1()
105 ret = -ENOMEM; in test_case_1()
115 ret = btrfs_add_extent_mapping(fs_info, em_tree, &em, em->start, em->len); in test_case_1()
117 if (ret) { in test_case_1()
118 test_err("case1 [%llu %llu]: ret %d", start, start + len, ret); in test_case_1()
[all …]
/fs/btrfs/
Dsend.c265 int ret; member
435 int ret; in fs_path_prepare_for_add() local
441 ret = fs_path_ensure_buf(p, new_len); in fs_path_prepare_for_add()
442 if (ret < 0) in fs_path_prepare_for_add()
459 return ret; in fs_path_prepare_for_add()
464 int ret; in fs_path_add() local
467 ret = fs_path_prepare_for_add(p, name_len, &prepared); in fs_path_add()
468 if (ret < 0) in fs_path_add()
473 return ret; in fs_path_add()
478 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()
185 return ret; in start_log_trans()
195 int ret = -ENOENT; in join_running_log_trans() local
198 return ret; in join_running_log_trans()
202 ret = 0; in join_running_log_trans()
[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 …]
Dioctl.c204 int ret; in btrfs_ioctl_setflags() local
217 ret = mnt_want_write_file(file); in btrfs_ioctl_setflags()
218 if (ret) in btrfs_ioctl_setflags()
219 return ret; in btrfs_ioctl_setflags()
225 ret = vfs_ioc_setflags_prepare(inode, old_fsflags, fsflags); in btrfs_ioctl_setflags()
226 if (ret) in btrfs_ioctl_setflags()
229 ret = check_fsflags(old_fsflags, fsflags); in btrfs_ioctl_setflags()
230 if (ret) in btrfs_ioctl_setflags()
295 ret = -ETXTBSY; in btrfs_ioctl_setflags()
315 ret = PTR_ERR(trans); in btrfs_ioctl_setflags()
[all …]
Dqgroup.c47 u64 ret = 0; in qgroup_rsv_total() local
51 ret += qgroup->rsv.values[i]; in qgroup_rsv_total()
53 return ret; in qgroup_rsv_total()
336 int ret = 0; in btrfs_read_qgroup_config() local
345 ret = -ENOMEM; in btrfs_read_qgroup_config()
351 ret = -ENOMEM; in btrfs_read_qgroup_config()
355 ret = btrfs_sysfs_add_qgroups(fs_info); in btrfs_read_qgroup_config()
356 if (ret < 0) in btrfs_read_qgroup_config()
367 ret = btrfs_search_slot_for_read(quota_root, &key, path, 1, 1); in btrfs_read_qgroup_config()
368 if (ret) in btrfs_read_qgroup_config()
[all …]
Dfree-space-tree.c58 int ret; in add_new_free_space_info() local
64 ret = btrfs_insert_empty_item(trans, root, path, &key, sizeof(*info)); in add_new_free_space_info()
65 if (ret) in add_new_free_space_info()
75 ret = 0; in add_new_free_space_info()
78 return ret; in add_new_free_space_info()
90 int ret; in search_free_space_info() local
96 ret = btrfs_search_slot(trans, root, &key, path, 0, cow); in search_free_space_info()
97 if (ret < 0) in search_free_space_info()
98 return ERR_PTR(ret); in search_free_space_info()
99 if (ret != 0) { in search_free_space_info()
[all …]
Dreflink.c21 int ret; in clone_finish_inode_update() local
37 ret = btrfs_update_inode(trans, root, inode); in clone_finish_inode_update()
38 if (ret) { in clone_finish_inode_update()
39 btrfs_abort_transaction(trans, ret); in clone_finish_inode_update()
43 ret = btrfs_end_transaction(trans); in clone_finish_inode_update()
45 return ret; in clone_finish_inode_update()
62 int ret; in copy_inline_to_page() local
72 ret = btrfs_delalloc_reserve_space(inode, &data_reserved, file_offset, in copy_inline_to_page()
74 if (ret) in copy_inline_to_page()
80 ret = -ENOMEM; in copy_inline_to_page()
[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()
74 ret = nilfs_dat_translate(nilfs_bmap_get_dat(bmap), *ptrp, in nilfs_bmap_lookup_at_level()
76 if (!ret) in nilfs_bmap_lookup_at_level()
78 else if (ret == -ENOENT) { in nilfs_bmap_lookup_at_level()
85 ret = -EINVAL; in nilfs_bmap_lookup_at_level()
91 return nilfs_bmap_convert_error(bmap, __func__, ret); in nilfs_bmap_lookup_at_level()
97 int ret; in nilfs_bmap_lookup_contig() local
100 ret = bmap->b_ops->bop_lookup_contig(bmap, key, ptrp, maxblocks); in nilfs_bmap_lookup_contig()
[all …]
/fs/ocfs2/
Drefcounttree.c328 int ret = 0; in ocfs2_get_refcount_tree() local
346 ret = -ENOMEM; in ocfs2_get_refcount_tree()
347 mlog_errno(ret); in ocfs2_get_refcount_tree()
348 return ret; in ocfs2_get_refcount_tree()
358 ret = ocfs2_read_refcount_block(&new->rf_ci, rf_blkno, &ref_root_bh); in ocfs2_get_refcount_tree()
359 if (ret) { in ocfs2_get_refcount_tree()
360 mlog_errno(ret); in ocfs2_get_refcount_tree()
363 return ret; in ocfs2_get_refcount_tree()
393 return ret; in ocfs2_get_refcount_tree()
398 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); 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.c126 int ret = 0; in ocfs2_lock_get_block() local
130 ret = ocfs2_get_block(inode, iblock, bh_result, create); in ocfs2_lock_get_block()
133 return ret; in ocfs2_lock_get_block()
260 int ret; in ocfs2_readpage_inline() local
266 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_readpage_inline()
267 if (ret) { in ocfs2_readpage_inline()
268 mlog_errno(ret); in ocfs2_readpage_inline()
272 ret = ocfs2_read_inline_data(inode, page, di_bh); in ocfs2_readpage_inline()
277 return ret; in ocfs2_readpage_inline()
285 int ret, unlock = 1; in ocfs2_readpage() local
[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()
57 ssize_t ret; in wait_for_direct_io() local
75 ret = buffer_index; in wait_for_direct_io()
78 __func__, ret); in wait_for_direct_io()
139 ret = orangefs_bufmap_copy_from_iovec(iter, buffer_index, in wait_for_direct_io()
141 if (ret < 0) { in wait_for_direct_io()
143 __func__, (long)ret); in wait_for_direct_io()
[all …]
/fs/
Dsplice.c189 int ret = 0, page_nr = 0; in splice_to_pipe() local
196 ret = -EPIPE; in splice_to_pipe()
213 ret += buf->len; in splice_to_pipe()
219 if (!ret) in splice_to_pipe()
220 ret = -EAGAIN; in splice_to_pipe()
226 return ret; in splice_to_pipe()
235 int ret; in add_to_pipe() local
239 ret = -EPIPE; in add_to_pipe()
241 ret = -EAGAIN; in add_to_pipe()
248 return ret; in add_to_pipe()
[all …]
Dread_write.c409 ssize_t ret; in new_sync_read() local
415 ret = call_read_iter(filp, &kiocb, &iter); in new_sync_read()
416 BUG_ON(ret == -EIOCBQUEUED); in new_sync_read()
419 return ret; in new_sync_read()
438 ssize_t ret; in __kernel_read() local
454 ret = file->f_op->read_iter(&kiocb, &iter); in __kernel_read()
455 if (ret > 0) { in __kernel_read()
459 add_rchar(current, ret); in __kernel_read()
462 return ret; in __kernel_read()
467 ssize_t ret; in kernel_read() local
[all …]
/fs/nfs/
Dnfs4idmap.c201 int ret = 0; in nfs_idmap_init() local
216 ret = PTR_ERR(keyring); in nfs_idmap_init()
220 ret = register_key_type(&key_type_id_resolver); in nfs_idmap_init()
221 if (ret < 0) in nfs_idmap_init()
224 ret = register_key_type(&key_type_id_resolver_legacy); in nfs_idmap_init()
225 if (ret < 0) in nfs_idmap_init()
240 return ret; in nfs_idmap_init()
284 ssize_t ret; in nfs_idmap_request_key() local
286 ret = nfs_idmap_get_desc(name, namelen, type, strlen(type), &desc); in nfs_idmap_request_key()
287 if (ret < 0) in nfs_idmap_request_key()
[all …]

12345678910>>...26