/fs/btrfs/tests/ |
D | free-space-tests.c | 62 int ret = 0; in test_extents() local 67 ret = btrfs_add_free_space(cache, 0, 4 * 1024 * 1024); in test_extents() 68 if (ret) { in test_extents() 69 test_msg("Error adding initial extents %d\n", ret); in test_extents() 70 return ret; in test_extents() 73 ret = btrfs_remove_free_space(cache, 0, 4 * 1024 * 1024); in test_extents() 74 if (ret) { in test_extents() 75 test_msg("Error removing extent %d\n", ret); in test_extents() 76 return ret; in test_extents() 85 ret = btrfs_add_free_space(cache, 0, 4 * 1024 * 1024); in test_extents() [all …]
|
D | qgroup-tests.c | 44 int ret; in insert_normal_tree_ref() local 59 ret = btrfs_insert_empty_item(&trans, root, path, &ins, size); in insert_normal_tree_ref() 60 if (ret) { in insert_normal_tree_ref() 61 test_msg("Couldn't insert ref %d\n", ret); in insert_normal_tree_ref() 63 return ret; in insert_normal_tree_ref() 94 int ret; in add_tree_ref() local 109 ret = btrfs_search_slot(&trans, root, &key, path, 0, 1); in add_tree_ref() 110 if (ret) { in add_tree_ref() 113 return ret; in add_tree_ref() 131 ret = btrfs_insert_empty_item(&trans, root, path, &key, 0); in add_tree_ref() [all …]
|
/fs/btrfs/ |
D | send.c | 268 int ret; member 394 int ret; in fs_path_prepare_for_add() local 400 ret = fs_path_ensure_buf(p, new_len); in fs_path_prepare_for_add() 401 if (ret < 0) in fs_path_prepare_for_add() 418 return ret; in fs_path_prepare_for_add() 423 int ret; in fs_path_add() local 426 ret = fs_path_prepare_for_add(p, name_len, &prepared); in fs_path_add() 427 if (ret < 0) in fs_path_add() 432 return ret; in fs_path_add() 437 int ret; in fs_path_add_path() local [all …]
|
D | ioctl.c | 220 int ret; in btrfs_ioctl_setflags() local 234 ret = check_flags(flags); in btrfs_ioctl_setflags() 235 if (ret) in btrfs_ioctl_setflags() 236 return ret; in btrfs_ioctl_setflags() 238 ret = mnt_want_write_file(file); in btrfs_ioctl_setflags() 239 if (ret) in btrfs_ioctl_setflags() 240 return ret; in btrfs_ioctl_setflags() 252 ret = -EPERM; in btrfs_ioctl_setflags() 316 ret = btrfs_set_prop(inode, "btrfs.compression", NULL, 0, 0); in btrfs_ioctl_setflags() 317 if (ret && ret != -ENODATA) in btrfs_ioctl_setflags() [all …]
|
D | tree-log.c | 144 int ret; in start_log_trans() local 149 ret = -EAGAIN; in start_log_trans() 170 ret = 0; in start_log_trans() 173 ret = btrfs_init_log_root_tree(trans, root->fs_info); in start_log_trans() 175 if (ret) in start_log_trans() 179 ret = btrfs_add_log_tree(trans, root); in start_log_trans() 180 if (ret) in start_log_trans() 194 return ret; in start_log_trans() 204 int ret = -ENOENT; in join_running_log_trans() local 212 ret = 0; in join_running_log_trans() [all …]
|
D | qgroup.c | 276 int ret = 0; in btrfs_read_qgroup_config() local 285 ret = -ENOMEM; in btrfs_read_qgroup_config() 291 ret = -ENOMEM; in btrfs_read_qgroup_config() 304 ret = btrfs_search_slot_for_read(quota_root, &key, path, 1, 1); in btrfs_read_qgroup_config() 305 if (ret) in btrfs_read_qgroup_config() 353 ret = PTR_ERR(qgroup); in btrfs_read_qgroup_config() 384 ret = btrfs_next_item(quota_root, path); in btrfs_read_qgroup_config() 385 if (ret < 0) in btrfs_read_qgroup_config() 387 if (ret) in btrfs_read_qgroup_config() 398 ret = btrfs_search_slot_for_read(quota_root, &key, path, 1, 0); in btrfs_read_qgroup_config() [all …]
|
D | uuid-tree.c | 37 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 …]
|
D | backref.c | 92 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() 229 int ret = 0; in add_all_parents() local 242 ret = ulist_add(parents, eb->start, 0, GFP_NOFS); in add_all_parents() 243 if (ret < 0) in add_all_parents() 244 return ret; in add_all_parents() 254 ret = btrfs_next_old_leaf(root, path, time_seq); in add_all_parents() 256 while (!ret && count < total_refs) { in add_all_parents() [all …]
|
/fs/nilfs2/ |
D | ioctl.c | 70 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 …]
|
D | bmap.c | 79 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/ |
D | xattr.c | 33 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() 57 -ret); in cachefiles_check_object_type() 62 ret = vfs_getxattr(dentry, cachefiles_xattr_cache, xtype, 3); in cachefiles_check_object_type() 63 if (ret < 0) { in cachefiles_check_object_type() 64 if (ret == -ERANGE) in cachefiles_check_object_type() 70 -ret); in cachefiles_check_object_type() 75 if (ret != 2) in cachefiles_check_object_type() [all …]
|
D | security.c | 23 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(root->d_inode, root, 0); in cachefiles_check_cache_dir() [all …]
|
/fs/ocfs2/ |
D | refcounttree.c | 335 int ret = 0; in ocfs2_get_refcount_tree() local 353 ret = -ENOMEM; in ocfs2_get_refcount_tree() 354 mlog_errno(ret); in ocfs2_get_refcount_tree() 355 return ret; in ocfs2_get_refcount_tree() 365 ret = ocfs2_read_refcount_block(&new->rf_ci, rf_blkno, &ref_root_bh); in ocfs2_get_refcount_tree() 366 if (ret) { in ocfs2_get_refcount_tree() 367 mlog_errno(ret); in ocfs2_get_refcount_tree() 370 return ret; in ocfs2_get_refcount_tree() 400 return ret; in ocfs2_get_refcount_tree() 405 int ret; in ocfs2_get_refcount_block() local [all …]
|
D | xattr.c | 599 int ret = 0; in ocfs2_calc_security_init() local 611 ret = ocfs2_reserve_new_metadata_blocks(osb, 1, xattr_ac); in ocfs2_calc_security_init() 612 if (ret) { in ocfs2_calc_security_init() 613 mlog_errno(ret); in ocfs2_calc_security_init() 614 return ret; in ocfs2_calc_security_init() 628 return ret; in ocfs2_calc_security_init() 639 int ret = 0; in ocfs2_calc_xattr_init() local 656 mlog_errno(ret); in ocfs2_calc_xattr_init() 657 return ret; in ocfs2_calc_xattr_init() 662 return ret; in ocfs2_calc_xattr_init() [all …]
|
D | move_extents.c | 63 int ret = 0, index; in __ocfs2_move_extent() local 72 ret = ocfs2_duplicate_clusters_by_page(handle, inode, cpos, in __ocfs2_move_extent() 74 if (ret) { in __ocfs2_move_extent() 75 mlog_errno(ret); in __ocfs2_move_extent() 87 ret = -ENOMEM; in __ocfs2_move_extent() 88 mlog_errno(ret); in __ocfs2_move_extent() 92 ret = ocfs2_find_path(INODE_CACHE(inode), path, cpos); in __ocfs2_move_extent() 93 if (ret) { in __ocfs2_move_extent() 94 mlog_errno(ret); in __ocfs2_move_extent() 106 ret = -EROFS; in __ocfs2_move_extent() [all …]
|
D | file.c | 182 int ret; in ocfs2_sync_file() local 205 ret = blkdev_issue_flush(inode->i_sb->s_bdev, GFP_KERNEL, NULL); in ocfs2_sync_file() 207 err = ret; in ocfs2_sync_file() 262 int ret; in ocfs2_update_inode_atime() local 269 ret = PTR_ERR(handle); in ocfs2_update_inode_atime() 270 mlog_errno(ret); in ocfs2_update_inode_atime() 274 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), bh, in ocfs2_update_inode_atime() 276 if (ret) { in ocfs2_update_inode_atime() 277 mlog_errno(ret); in ocfs2_update_inode_atime() 295 return ret; in ocfs2_update_inode_atime() [all …]
|
D | alloc.c | 553 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 …]
|
D | dir.c | 174 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 …]
|
D | resize.c | 93 int ret = 0; in ocfs2_update_last_group_and_inode() local 106 ret = ocfs2_journal_access_gd(handle, INODE_CACHE(bm_inode), in ocfs2_update_last_group_and_inode() 108 if (ret < 0) { in ocfs2_update_last_group_and_inode() 109 mlog_errno(ret); in ocfs2_update_last_group_and_inode() 135 ret = ocfs2_journal_access_di(handle, INODE_CACHE(bm_inode), bm_bh, in ocfs2_update_last_group_and_inode() 137 if (ret < 0) { in ocfs2_update_last_group_and_inode() 138 mlog_errno(ret); in ocfs2_update_last_group_and_inode() 163 if (ret < 0) { in ocfs2_update_last_group_and_inode() 172 if (ret) in ocfs2_update_last_group_and_inode() 173 mlog_errno(ret); in ocfs2_update_last_group_and_inode() [all …]
|
/fs/ |
D | read_write.c | 379 ssize_t ret; in do_sync_read() local 385 ret = filp->f_op->aio_read(&kiocb, &iov, 1, kiocb.ki_pos); in do_sync_read() 386 if (-EIOCBQUEUED == ret) in do_sync_read() 387 ret = wait_on_sync_kiocb(&kiocb); in do_sync_read() 389 return ret; in do_sync_read() 399 ssize_t ret; in new_sync_read() local 406 ret = filp->f_op->read_iter(&kiocb, &iter); in new_sync_read() 407 if (-EIOCBQUEUED == ret) in new_sync_read() 408 ret = wait_on_sync_kiocb(&kiocb); in new_sync_read() 410 return ret; in new_sync_read() [all …]
|
D | splice.c | 187 int ret, do_wakeup, page_nr; in splice_to_pipe() local 192 ret = 0; in splice_to_pipe() 201 if (!ret) in splice_to_pipe() 202 ret = -EPIPE; in splice_to_pipe() 220 ret += buf->len; in splice_to_pipe() 234 if (!ret) in splice_to_pipe() 235 ret = -EAGAIN; in splice_to_pipe() 240 if (!ret) in splice_to_pipe() 241 ret = -ERESTARTSYS; in splice_to_pipe() 266 return ret; in splice_to_pipe() [all …]
|
/fs/nfs/ |
D | idmap.c | 190 int ret = 0; in nfs_idmap_init_keyring() local 205 ret = PTR_ERR(keyring); in nfs_idmap_init_keyring() 209 ret = register_key_type(&key_type_id_resolver); in nfs_idmap_init_keyring() 210 if (ret < 0) in nfs_idmap_init_keyring() 213 ret = register_key_type(&key_type_id_resolver_legacy); in nfs_idmap_init_keyring() 214 if (ret < 0) in nfs_idmap_init_keyring() 229 return ret; in nfs_idmap_init_keyring() 273 ssize_t ret; in nfs_idmap_request_key() local 275 ret = nfs_idmap_get_desc(name, namelen, type, strlen(type), &desc); in nfs_idmap_request_key() 276 if (ret <= 0) in nfs_idmap_request_key() [all …]
|
/fs/exofs/ |
D | inode.c | 149 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/afs/ |
D | main.c | 43 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 …]
|
/fs/f2fs/ |
D | file.c | 178 bool ret = false; in need_inode_page_update() local 181 ret = true; in need_inode_page_update() 183 return ret; in need_inode_page_update() 206 int ret = 0; in f2fs_do_sync_file() local 222 ret = filemap_write_and_wait_range(inode->i_mapping, start, end); in f2fs_do_sync_file() 225 if (ret) { in f2fs_do_sync_file() 226 trace_f2fs_sync_file_exit(inode, cp_reason, datasync, ret); in f2fs_do_sync_file() 227 return ret; in f2fs_do_sync_file() 262 ret = f2fs_sync_fs(inode->i_sb, 1); in f2fs_do_sync_file() 274 ret = fsync_node_pages(sbi, inode, &wbc, atomic); in f2fs_do_sync_file() [all …]
|