Home
last modified time | relevance | path

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

12345678910>>...22

/fs/btrfs/tests/
Dfree-space-tests.c69 int ret = 0; in test_extents() local
74 ret = btrfs_add_free_space(cache, 0, 4 * 1024 * 1024); in test_extents()
75 if (ret) { in test_extents()
76 test_msg("Error adding initial extents %d\n", ret); in test_extents()
77 return ret; in test_extents()
80 ret = btrfs_remove_free_space(cache, 0, 4 * 1024 * 1024); in test_extents()
81 if (ret) { in test_extents()
82 test_msg("Error removing extent %d\n", ret); in test_extents()
83 return ret; in test_extents()
92 ret = btrfs_add_free_space(cache, 0, 4 * 1024 * 1024); in test_extents()
[all …]
Dqgroup-tests.c45 int ret; in insert_normal_tree_ref() local
60 ret = btrfs_insert_empty_item(&trans, root, path, &ins, size); in insert_normal_tree_ref()
61 if (ret) { in insert_normal_tree_ref()
62 test_msg("Couldn't insert ref %d\n", ret); in insert_normal_tree_ref()
64 return ret; in insert_normal_tree_ref()
95 int ret; in add_tree_ref() local
110 ret = btrfs_search_slot(&trans, root, &key, path, 0, 1); in add_tree_ref()
111 if (ret) { in add_tree_ref()
114 return ret; in add_tree_ref()
132 ret = btrfs_insert_empty_item(&trans, root, path, &key, 0); in add_tree_ref()
[all …]
/fs/btrfs/
Dsend.c271 int ret; member
397 int ret; in fs_path_prepare_for_add() local
403 ret = fs_path_ensure_buf(p, new_len); in fs_path_prepare_for_add()
404 if (ret < 0) in fs_path_prepare_for_add()
421 return ret; in fs_path_prepare_for_add()
426 int ret; in fs_path_add() local
429 ret = fs_path_prepare_for_add(p, name_len, &prepared); in fs_path_add()
430 if (ret < 0) in fs_path_add()
435 return ret; in fs_path_add()
440 int ret; in fs_path_add_path() local
[all …]
Dtree-log.c144 int ret = 0; in start_log_trans() local
150 ret = -EAGAIN; in start_log_trans()
163 ret = btrfs_init_log_root_tree(trans, root->fs_info); in start_log_trans()
165 if (ret) in start_log_trans()
168 ret = btrfs_add_log_tree(trans, root); in start_log_trans()
169 if (ret) in start_log_trans()
186 return ret; in start_log_trans()
196 int ret = -ENOENT; in join_running_log_trans() local
204 ret = 0; in join_running_log_trans()
208 return ret; in join_running_log_trans()
[all …]
Dioctl.c222 int ret; in btrfs_ioctl_setflags() local
236 ret = check_flags(flags); in btrfs_ioctl_setflags()
237 if (ret) in btrfs_ioctl_setflags()
238 return ret; in btrfs_ioctl_setflags()
240 ret = mnt_want_write_file(file); in btrfs_ioctl_setflags()
241 if (ret) in btrfs_ioctl_setflags()
242 return ret; in btrfs_ioctl_setflags()
254 ret = -EPERM; in btrfs_ioctl_setflags()
318 ret = btrfs_set_prop(inode, "btrfs.compression", NULL, 0, 0); in btrfs_ioctl_setflags()
319 if (ret && ret != -ENODATA) in btrfs_ioctl_setflags()
[all …]
Duuid-tree.c37 int ret; in btrfs_uuid_tree_lookup() local
46 ret = -ENOENT; in btrfs_uuid_tree_lookup()
52 ret = -ENOMEM; in btrfs_uuid_tree_lookup()
57 ret = btrfs_search_slot(NULL, uuid_root, &key, path, 0, 0); in btrfs_uuid_tree_lookup()
58 if (ret < 0) { in btrfs_uuid_tree_lookup()
60 } else if (ret > 0) { in btrfs_uuid_tree_lookup()
61 ret = -ENOENT; in btrfs_uuid_tree_lookup()
69 ret = -ENOENT; in btrfs_uuid_tree_lookup()
81 ret = 0; in btrfs_uuid_tree_lookup()
90 return ret; in btrfs_uuid_tree_lookup()
[all …]
Dqgroup.c308 int ret = 0; in btrfs_read_qgroup_config() local
317 ret = -ENOMEM; in btrfs_read_qgroup_config()
323 ret = -ENOMEM; in btrfs_read_qgroup_config()
336 ret = btrfs_search_slot_for_read(quota_root, &key, path, 1, 1); in btrfs_read_qgroup_config()
337 if (ret) in btrfs_read_qgroup_config()
385 ret = PTR_ERR(qgroup); in btrfs_read_qgroup_config()
416 ret = btrfs_next_item(quota_root, path); in btrfs_read_qgroup_config()
417 if (ret < 0) in btrfs_read_qgroup_config()
419 if (ret) in btrfs_read_qgroup_config()
430 ret = btrfs_search_slot_for_read(quota_root, &key, path, 1, 0); in btrfs_read_qgroup_config()
[all …]
Dbackref.c92 int ret; in find_extent_in_eb() local
113 ret = check_extent_in_eb(&key, eb, fi, extent_item_pos, eie); in find_extent_in_eb()
114 if (ret < 0) in find_extent_in_eb()
115 return ret; in find_extent_in_eb()
252 int ret = 0; in add_all_parents() local
265 ret = ulist_add(parents, eb->start, 0, GFP_NOFS); in add_all_parents()
266 if (ret < 0) in add_all_parents()
267 return ret; in add_all_parents()
278 ret = btrfs_next_leaf(root, path); in add_all_parents()
280 ret = btrfs_next_old_leaf(root, path, time_seq); in add_all_parents()
[all …]
/fs/nilfs2/
Dioctl.c70 int ret, i; in nilfs_ioctl_wrap_copy() local
92 ret = 0; in nilfs_ioctl_wrap_copy()
101 ret = -EFAULT; in nilfs_ioctl_wrap_copy()
108 ret = nr; in nilfs_ioctl_wrap_copy()
114 ret = -EFAULT; in nilfs_ioctl_wrap_copy()
126 return ret; in nilfs_ioctl_wrap_copy()
147 int ret; in nilfs_ioctl_setflags() local
155 ret = mnt_want_write_file(filp); in nilfs_ioctl_setflags()
156 if (ret) in nilfs_ioctl_setflags()
157 return ret; in nilfs_ioctl_setflags()
[all …]
Dbmap.c79 int ret; in nilfs_bmap_lookup_at_level() local
82 ret = bmap->b_ops->bop_lookup(bmap, key, level, ptrp); in nilfs_bmap_lookup_at_level()
83 if (ret < 0) { in nilfs_bmap_lookup_at_level()
84 ret = nilfs_bmap_convert_error(bmap, __func__, ret); in nilfs_bmap_lookup_at_level()
88 ret = nilfs_dat_translate(nilfs_bmap_get_dat(bmap), *ptrp, in nilfs_bmap_lookup_at_level()
90 if (!ret) in nilfs_bmap_lookup_at_level()
96 return ret; in nilfs_bmap_lookup_at_level()
102 int ret; in nilfs_bmap_lookup_contig() local
105 ret = bmap->b_ops->bop_lookup_contig(bmap, key, ptrp, maxblocks); in nilfs_bmap_lookup_contig()
108 return nilfs_bmap_convert_error(bmap, __func__, ret); in nilfs_bmap_lookup_contig()
[all …]
/fs/cachefiles/
Dxattr.c33 int ret; in cachefiles_check_object_type() local
46 ret = vfs_setxattr(dentry, cachefiles_xattr_cache, type, 2, in cachefiles_check_object_type()
48 if (ret == 0) { in cachefiles_check_object_type()
53 if (ret != -EEXIST) { in cachefiles_check_object_type()
56 -ret); in cachefiles_check_object_type()
61 ret = vfs_getxattr(dentry, cachefiles_xattr_cache, xtype, 3); in cachefiles_check_object_type()
62 if (ret < 0) { in cachefiles_check_object_type()
63 if (ret == -ERANGE) in cachefiles_check_object_type()
68 -ret); in cachefiles_check_object_type()
73 if (ret != 2) in cachefiles_check_object_type()
[all …]
Dsecurity.c23 int ret; in cachefiles_get_security_ID() local
29 ret = -ENOMEM; in cachefiles_get_security_ID()
34 ret = set_security_override_from_ctx(new, cache->secctx); in cachefiles_get_security_ID()
35 if (ret < 0) { in cachefiles_get_security_ID()
38 ret); in cachefiles_get_security_ID()
44 ret = 0; in cachefiles_get_security_ID()
46 _leave(" = %d", ret); in cachefiles_get_security_ID()
47 return ret; in cachefiles_get_security_ID()
56 int ret; in cachefiles_check_cache_dir() local
58 ret = security_inode_mkdir(d_backing_inode(root), root, 0); in cachefiles_check_cache_dir()
[all …]
/fs/ocfs2/
Drefcounttree.c333 int ret = 0; in ocfs2_get_refcount_tree() local
351 ret = -ENOMEM; in ocfs2_get_refcount_tree()
352 mlog_errno(ret); in ocfs2_get_refcount_tree()
353 return ret; in ocfs2_get_refcount_tree()
363 ret = ocfs2_read_refcount_block(&new->rf_ci, rf_blkno, &ref_root_bh); in ocfs2_get_refcount_tree()
364 if (ret) { in ocfs2_get_refcount_tree()
365 mlog_errno(ret); in ocfs2_get_refcount_tree()
368 return ret; in ocfs2_get_refcount_tree()
398 return ret; in ocfs2_get_refcount_tree()
403 int ret; in ocfs2_get_refcount_block() local
[all …]
Dxattr.c593 int ret = 0; in ocfs2_calc_security_init() local
605 ret = ocfs2_reserve_new_metadata_blocks(osb, 1, xattr_ac); in ocfs2_calc_security_init()
606 if (ret) { in ocfs2_calc_security_init()
607 mlog_errno(ret); in ocfs2_calc_security_init()
608 return ret; in ocfs2_calc_security_init()
622 return ret; in ocfs2_calc_security_init()
633 int ret = 0; in ocfs2_calc_xattr_init() local
652 mlog_errno(ret); in ocfs2_calc_xattr_init()
653 return ret; in ocfs2_calc_xattr_init()
658 return ret; in ocfs2_calc_xattr_init()
[all …]
Dmove_extents.c64 int ret = 0, index; in __ocfs2_move_extent() local
73 ret = ocfs2_duplicate_clusters_by_page(handle, inode, cpos, in __ocfs2_move_extent()
75 if (ret) { in __ocfs2_move_extent()
76 mlog_errno(ret); in __ocfs2_move_extent()
88 ret = -ENOMEM; in __ocfs2_move_extent()
89 mlog_errno(ret); in __ocfs2_move_extent()
93 ret = ocfs2_find_path(INODE_CACHE(inode), path, cpos); in __ocfs2_move_extent()
94 if (ret) { in __ocfs2_move_extent()
95 mlog_errno(ret); in __ocfs2_move_extent()
103 ret = ocfs2_error(inode->i_sb, in __ocfs2_move_extent()
[all …]
Dfile.c186 int ret; in ocfs2_sync_file() local
209 ret = blkdev_issue_flush(inode->i_sb->s_bdev, GFP_KERNEL, NULL); in ocfs2_sync_file()
211 err = ret; in ocfs2_sync_file()
266 int ret; in ocfs2_update_inode_atime() local
273 ret = PTR_ERR(handle); in ocfs2_update_inode_atime()
274 mlog_errno(ret); in ocfs2_update_inode_atime()
278 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), bh, in ocfs2_update_inode_atime()
280 if (ret) { in ocfs2_update_inode_atime()
281 mlog_errno(ret); in ocfs2_update_inode_atime()
299 return ret; in ocfs2_update_inode_atime()
[all …]
Daops.c261 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
291 ret = ocfs2_inode_lock_with_page(inode, NULL, 0, page); in ocfs2_readpage()
292 if (ret != 0) { in ocfs2_readpage()
293 if (ret == AOP_TRUNCATED_PAGE) in ocfs2_readpage()
[all …]
Dalloc.c553 int ret = 0; in ocfs2_et_insert_check() local
556 ret = et->et_ops->eo_insert_check(et, rec); in ocfs2_et_insert_check()
557 return ret; in ocfs2_et_insert_check()
562 int ret = 0; in ocfs2_et_sanity_check() local
565 ret = et->et_ops->eo_sanity_check(et); in ocfs2_et_sanity_check()
566 return ret; in ocfs2_et_sanity_check()
750 int i, ret = 0; in ocfs2_journal_access_path() local
756 ret = ocfs2_path_bh_journal_access(handle, ci, path, i); in ocfs2_journal_access_path()
757 if (ret < 0) { in ocfs2_journal_access_path()
758 mlog_errno(ret); in ocfs2_journal_access_path()
[all …]
Ddir.c174 int ret; in ocfs2_dx_dir_link_trailer() local
178 ret = ocfs2_journal_access_dr(handle, INODE_CACHE(dir), dx_root_bh, in ocfs2_dx_dir_link_trailer()
180 if (ret) { in ocfs2_dx_dir_link_trailer()
181 mlog_errno(ret); in ocfs2_dx_dir_link_trailer()
193 return ret; in ocfs2_dx_dir_link_trailer()
369 int ret = 0; in ocfs2_search_dirblock() local
384 ret = -1; in ocfs2_search_dirblock()
388 ret = 1; in ocfs2_search_dirblock()
395 ret = -1; in ocfs2_search_dirblock()
404 trace_ocfs2_search_dirblock(ret); in ocfs2_search_dirblock()
[all …]
Dresize.c100 int ret = 0; in ocfs2_update_last_group_and_inode() local
114 ret = ocfs2_journal_access_gd(handle, INODE_CACHE(bm_inode), in ocfs2_update_last_group_and_inode()
116 if (ret < 0) { in ocfs2_update_last_group_and_inode()
117 mlog_errno(ret); in ocfs2_update_last_group_and_inode()
144 ret = ocfs2_journal_access_di(handle, INODE_CACHE(bm_inode), bm_bh, in ocfs2_update_last_group_and_inode()
146 if (ret < 0) { in ocfs2_update_last_group_and_inode()
147 mlog_errno(ret); in ocfs2_update_last_group_and_inode()
172 if (ret < 0) { in ocfs2_update_last_group_and_inode()
181 if (ret) in ocfs2_update_last_group_and_inode()
182 mlog_errno(ret); in ocfs2_update_last_group_and_inode()
[all …]
/fs/
Dread_write.c335 ssize_t ret; in vfs_iter_read() local
344 ret = file->f_op->read_iter(&kiocb, iter); in vfs_iter_read()
345 BUG_ON(ret == -EIOCBQUEUED); in vfs_iter_read()
346 if (ret > 0) in vfs_iter_read()
348 return ret; in vfs_iter_read()
355 ssize_t ret; in vfs_iter_write() local
364 ret = file->f_op->write_iter(&kiocb, iter); in vfs_iter_write()
365 BUG_ON(ret == -EIOCBQUEUED); in vfs_iter_write()
366 if (ret > 0) { in vfs_iter_write()
370 return ret; in vfs_iter_write()
[all …]
/fs/nfs/
Dnfs4idmap.c191 int ret = 0; in nfs_idmap_init() local
206 ret = PTR_ERR(keyring); in nfs_idmap_init()
210 ret = register_key_type(&key_type_id_resolver); in nfs_idmap_init()
211 if (ret < 0) in nfs_idmap_init()
214 ret = register_key_type(&key_type_id_resolver_legacy); in nfs_idmap_init()
215 if (ret < 0) in nfs_idmap_init()
230 return ret; in nfs_idmap_init()
274 ssize_t ret; in nfs_idmap_request_key() local
276 ret = nfs_idmap_get_desc(name, namelen, type, strlen(type), &desc); in nfs_idmap_request_key()
277 if (ret <= 0) in nfs_idmap_request_key()
[all …]
/fs/exofs/
Dinode.c149 static int update_read_page(struct page *page, int ret) in update_read_page() argument
151 switch (ret) { in update_read_page()
172 ret = 0; /* recovered error */ in update_read_page()
177 return ret; in update_read_page()
180 static void update_write_page(struct page *page, int ret) in update_write_page() argument
182 if (unlikely(ret == PAGE_WAS_NOT_IN_IO)) in update_write_page()
185 if (ret) { in update_write_page()
186 mapping_set_error(page->mapping, ret); in update_write_page()
200 int ret = ore_check_io(pcol->ios, NULL); in __readpages_done() local
202 if (likely(!ret)) { in __readpages_done()
[all …]
/fs/quota/
Dquota_tree.c64 ssize_t ret; in write_blk() local
66 ret = sb->s_op->quota_write(sb, info->dqi_type, buf, in write_blk()
68 if (ret != info->dqi_usable_bs) { in write_blk()
70 if (ret >= 0) in write_blk()
71 ret = -EIO; in write_blk()
73 return ret; in write_blk()
81 int ret, blk; in get_free_dqblk() local
87 ret = read_blk(info, blk, buf); in get_free_dqblk()
88 if (ret < 0) in get_free_dqblk()
95 ret = write_blk(info, info->dqi_blocks, buf); in get_free_dqblk()
[all …]
/fs/afs/
Dmain.c43 int ret; in afs_get_client_UUID() local
47 ret = afs_get_MAC_address(afs_uuid.node, sizeof(afs_uuid.node)); in afs_get_client_UUID()
48 if (ret < 0) in afs_get_client_UUID()
49 return ret; in afs_get_client_UUID()
83 int ret; in afs_init() local
87 ret = afs_get_client_UUID(); in afs_init()
88 if (ret < 0) in afs_init()
89 return ret; in afs_init()
92 ret = -ENOMEM; in afs_init()
95 return ret; in afs_init()
[all …]

12345678910>>...22