Home
last modified time | relevance | path

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

12345678910>>...15

/fs/ocfs2/
Dxattr.c477 int ret = 0; in ocfs2_calc_security_init() local
489 ret = ocfs2_reserve_new_metadata_blocks(osb, 1, xattr_ac); in ocfs2_calc_security_init()
490 if (ret) { in ocfs2_calc_security_init()
491 mlog_errno(ret); in ocfs2_calc_security_init()
492 return ret; in ocfs2_calc_security_init()
506 return ret; in ocfs2_calc_security_init()
517 int ret = 0; in ocfs2_calc_xattr_init() local
534 mlog_errno(ret); in ocfs2_calc_xattr_init()
535 return ret; in ocfs2_calc_xattr_init()
540 return ret; in ocfs2_calc_xattr_init()
[all …]
Dfile.c245 int ret; in ocfs2_update_inode_atime() local
254 ret = PTR_ERR(handle); in ocfs2_update_inode_atime()
255 mlog_errno(ret); in ocfs2_update_inode_atime()
259 ret = ocfs2_journal_access_di(handle, inode, bh, in ocfs2_update_inode_atime()
261 if (ret) { in ocfs2_update_inode_atime()
262 mlog_errno(ret); in ocfs2_update_inode_atime()
275 ret = ocfs2_journal_dirty(handle, bh); in ocfs2_update_inode_atime()
276 if (ret < 0) in ocfs2_update_inode_atime()
277 mlog_errno(ret); in ocfs2_update_inode_atime()
282 mlog_exit(ret); in ocfs2_update_inode_atime()
[all …]
Dresize.c96 int ret = 0; in ocfs2_update_last_group_and_inode() local
109 ret = ocfs2_journal_access_gd(handle, bm_inode, group_bh, in ocfs2_update_last_group_and_inode()
111 if (ret < 0) { in ocfs2_update_last_group_and_inode()
112 mlog_errno(ret); in ocfs2_update_last_group_and_inode()
137 ret = ocfs2_journal_dirty(handle, group_bh); in ocfs2_update_last_group_and_inode()
138 if (ret < 0) { in ocfs2_update_last_group_and_inode()
139 mlog_errno(ret); in ocfs2_update_last_group_and_inode()
144 ret = ocfs2_journal_access_di(handle, 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()
[all …]
Dmmap.c66 int error, ret; in ocfs2_fault() local
73 ret = VM_FAULT_SIGBUS; in ocfs2_fault()
77 ret = filemap_fault(area, vmf); in ocfs2_fault()
84 return ret; in ocfs2_fault()
90 int ret; in __ocfs2_page_mkwrite() local
105 ret = -EINVAL; in __ocfs2_page_mkwrite()
120 ret = 0; in __ocfs2_page_mkwrite()
137 ret = ocfs2_write_begin_nolock(mapping, pos, len, 0, &locked_page, in __ocfs2_page_mkwrite()
139 if (ret) { in __ocfs2_page_mkwrite()
140 if (ret != -ENOSPC) in __ocfs2_page_mkwrite()
[all …]
Dalloc.c373 int ret = 0; in ocfs2_et_insert_check() local
376 ret = et->et_ops->eo_insert_check(inode, et, rec); in ocfs2_et_insert_check()
377 return ret; in ocfs2_et_insert_check()
383 int ret = 0; in ocfs2_et_sanity_check() local
386 ret = et->et_ops->eo_sanity_check(inode, et); in ocfs2_et_sanity_check()
387 return ret; in ocfs2_et_sanity_check()
595 int i, ret = 0; in ocfs2_journal_access_path() local
601 ret = ocfs2_path_bh_journal_access(handle, inode, path, i); in ocfs2_journal_access_path()
602 if (ret < 0) { in ocfs2_journal_access_path()
603 mlog_errno(ret); in ocfs2_journal_access_path()
[all …]
Daops.c253 int ret; in ocfs2_readpage_inline() local
259 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_readpage_inline()
260 if (ret) { in ocfs2_readpage_inline()
261 mlog_errno(ret); in ocfs2_readpage_inline()
265 ret = ocfs2_read_inline_data(inode, page, di_bh); in ocfs2_readpage_inline()
270 return ret; in ocfs2_readpage_inline()
278 int ret, unlock = 1; in ocfs2_readpage() local
282 ret = ocfs2_inode_lock_with_page(inode, NULL, 0, page); in ocfs2_readpage()
283 if (ret != 0) { in ocfs2_readpage()
284 if (ret == AOP_TRUNCATED_PAGE) in ocfs2_readpage()
[all …]
Dextent_map.c290 int ret, next_free; in ocfs2_last_eb_is_empty() local
296 ret = ocfs2_read_extent_block(inode, last_eb_blk, &eb_bh); in ocfs2_last_eb_is_empty()
297 if (ret) { in ocfs2_last_eb_is_empty()
298 mlog_errno(ret); in ocfs2_last_eb_is_empty()
310 ret = -EROFS; in ocfs2_last_eb_is_empty()
318 ret = 1; in ocfs2_last_eb_is_empty()
322 return ret; in ocfs2_last_eb_is_empty()
362 int ret, i; in ocfs2_figure_hole_clusters() local
378 ret = ocfs2_read_extent_block(inode, in ocfs2_figure_hole_clusters()
381 if (ret) { in ocfs2_figure_hole_clusters()
[all …]
/fs/btrfs/
Dfree-space-cache.c81 struct btrfs_free_space *entry, *ret = NULL; in tree_search_offset() local
88 (!ret || entry->offset < ret->offset) && in tree_search_offset()
90 ret = entry; in tree_search_offset()
95 ret = entry; in tree_search_offset()
104 ret = entry; in tree_search_offset()
109 return ret; in tree_search_offset()
119 struct btrfs_free_space *entry, *ret = NULL; in tree_search_bytes() local
133 if (!ret) in tree_search_bytes()
134 ret = entry; in tree_search_bytes()
135 else if (entry->bytes < ret->bytes) in tree_search_bytes()
[all …]
Droot-tree.c35 int ret; in btrfs_search_root() local
45 ret = btrfs_search_slot(NULL, root, &search_key, path, 0, 0); in btrfs_search_root()
46 if (ret < 0) in btrfs_search_root()
48 if (ret == 0) { in btrfs_search_root()
49 ret = 1; in btrfs_search_root()
53 ret = btrfs_next_leaf(root, path); in btrfs_search_root()
54 if (ret) in btrfs_search_root()
63 ret = 0; in btrfs_search_root()
68 return ret; in btrfs_search_root()
83 int ret; in btrfs_find_last_root() local
[all …]
Dtree-log.c88 int ret; in start_log_trans() local
99 ret = btrfs_init_log_root_tree(trans, root->fs_info); in start_log_trans()
100 BUG_ON(ret); in start_log_trans()
103 ret = btrfs_add_log_tree(trans, root); in start_log_trans()
104 BUG_ON(ret); in start_log_trans()
120 int ret = -ENOENT; in join_running_log_trans() local
128 ret = 0; in join_running_log_trans()
132 return ret; in join_running_log_trans()
238 int ret; in overwrite_item() local
253 ret = btrfs_search_slot(NULL, root, key, path, 0, 0); in overwrite_item()
[all …]
Dioctl.c66 int ret; in create_subvol() local
73 ret = btrfs_check_metadata_free_space(root); in create_subvol()
74 if (ret) in create_subvol()
80 ret = btrfs_find_free_objectid(trans, root->fs_info->tree_root, in create_subvol()
82 if (ret) in create_subvol()
88 ret = PTR_ERR(leaf); in create_subvol()
130 ret = btrfs_insert_root(trans, root->fs_info->tree_root, &key, in create_subvol()
132 if (ret) in create_subvol()
140 ret = btrfs_set_inode_index(dir, &index); in create_subvol()
141 BUG_ON(ret); in create_subvol()
[all …]
Dextent-tree.c117 struct btrfs_block_group_cache *cache, *ret = NULL; in block_group_cache_tree_search() local
131 if (!contains && (!ret || start < ret->key.objectid)) in block_group_cache_tree_search()
132 ret = cache; in block_group_cache_tree_search()
136 ret = cache; in block_group_cache_tree_search()
141 ret = cache; in block_group_cache_tree_search()
145 if (ret) in block_group_cache_tree_search()
146 atomic_inc(&ret->count); in block_group_cache_tree_search()
149 return ret; in block_group_cache_tree_search()
161 int ret; in add_new_free_space() local
165 ret = find_first_extent_bit(&info->pinned_extents, start, in add_new_free_space()
[all …]
Dacl.c95 int ret = 0; in btrfs_xattr_get_acl() local
103 ret = posix_acl_to_xattr(acl, value, size); in btrfs_xattr_get_acl()
106 return ret; in btrfs_xattr_get_acl()
114 int ret, size = 0; in btrfs_set_acl() local
121 ret = posix_acl_valid(acl); in btrfs_set_acl()
122 if (ret < 0) in btrfs_set_acl()
123 return ret; in btrfs_set_acl()
124 ret = 0; in btrfs_set_acl()
130 ret = posix_acl_equiv_mode(acl, &mode); in btrfs_set_acl()
131 if (ret < 0) in btrfs_set_acl()
[all …]
/fs/
Dsplice.c178 int ret, do_wakeup, page_nr; in splice_to_pipe() local
180 ret = 0; in splice_to_pipe()
190 if (!ret) in splice_to_pipe()
191 ret = -EPIPE; in splice_to_pipe()
209 ret += buf->len; in splice_to_pipe()
223 if (!ret) in splice_to_pipe()
224 ret = -EAGAIN; in splice_to_pipe()
229 if (!ret) in splice_to_pipe()
230 ret = -ERESTARTSYS; in splice_to_pipe()
261 return ret; in splice_to_pipe()
[all …]
Dread_write.c256 ssize_t ret; in do_sync_read() local
263 ret = filp->f_op->aio_read(&kiocb, &iov, 1, kiocb.ki_pos); in do_sync_read()
264 if (ret != -EIOCBRETRY) in do_sync_read()
269 if (-EIOCBQUEUED == ret) in do_sync_read()
270 ret = wait_on_sync_kiocb(&kiocb); in do_sync_read()
272 return ret; in do_sync_read()
279 ssize_t ret; in vfs_read() local
288 ret = rw_verify_area(READ, file, pos, count); in vfs_read()
289 if (ret >= 0) { in vfs_read()
290 count = ret; in vfs_read()
[all …]
Dsync.c59 int ret, err; in file_fsync() local
62 ret = write_inode_now(inode, 0); in file_fsync()
73 if (!ret) in file_fsync()
74 ret = err; in file_fsync()
75 return ret; in file_fsync()
95 int err, ret; in vfs_fsync() local
111 ret = -EINVAL; in vfs_fsync()
115 ret = filemap_fdatawrite(mapping); in vfs_fsync()
123 if (!ret) in vfs_fsync()
124 ret = err; in vfs_fsync()
[all …]
Daio.c580 int ret; in aio_put_req() local
582 ret = __aio_put_req(ctx, req); in aio_put_req()
584 return ret; in aio_put_req()
590 struct kioctx *ctx, *ret = NULL; in lookup_ioctx() local
598 ret = ctx; in lookup_ioctx()
604 return ret; in lookup_ioctx()
701 ssize_t ret; in aio_run_iocb() local
740 ret = -EINTR; in aio_run_iocb()
741 aio_complete(iocb, ret, 0); in aio_run_iocb()
750 ret = retry(iocb); in aio_run_iocb()
[all …]
Dquota_tree.c79 int ret, blk; in get_free_dqblk() local
85 ret = read_blk(info, blk, buf); in get_free_dqblk()
86 if (ret < 0) in get_free_dqblk()
93 ret = write_blk(info, info->dqi_blocks, buf); in get_free_dqblk()
94 if (ret < 0) in get_free_dqblk()
99 ret = blk; in get_free_dqblk()
102 return ret; in get_free_dqblk()
288 int ret = 0, newson = 0, newact = 0; in do_insert_tree() local
295 ret = get_free_dqblk(info); in do_insert_tree()
296 if (ret < 0) in do_insert_tree()
[all …]
Dioprio.c82 int ret; in SYSCALL_DEFINE3() local
104 ret = -ESRCH; in SYSCALL_DEFINE3()
118 ret = set_task_ioprio(p, ioprio); in SYSCALL_DEFINE3()
126 ret = set_task_ioprio(p, ioprio); in SYSCALL_DEFINE3()
127 if (ret) in SYSCALL_DEFINE3()
143 ret = set_task_ioprio(p, ioprio); in SYSCALL_DEFINE3()
144 if (ret) in SYSCALL_DEFINE3()
152 ret = -EINVAL; in SYSCALL_DEFINE3()
156 return ret; in SYSCALL_DEFINE3()
161 int ret; in get_task_ioprio() local
[all …]
Ddirect-io.c149 int ret; in dio_refill_pages() local
153 ret = get_user_pages_fast( in dio_refill_pages()
159 if (ret < 0 && dio->blocks_available && (dio->rw & WRITE)) { in dio_refill_pages()
167 dio->page_errors = ret; in dio_refill_pages()
172 ret = 0; in dio_refill_pages()
176 if (ret >= 0) { in dio_refill_pages()
177 dio->curr_user_address += ret * PAGE_SIZE; in dio_refill_pages()
178 dio->curr_page += ret; in dio_refill_pages()
180 dio->tail = ret; in dio_refill_pages()
181 ret = 0; in dio_refill_pages()
[all …]
/fs/jffs2/
Dmalloc.c122 struct jffs2_full_dirent *ret; in jffs2_alloc_full_dirent() local
123 ret = kmalloc(sizeof(struct jffs2_full_dirent) + namesize, GFP_KERNEL); in jffs2_alloc_full_dirent()
124 dbg_memalloc("%p\n", ret); in jffs2_alloc_full_dirent()
125 return ret; in jffs2_alloc_full_dirent()
136 struct jffs2_full_dnode *ret; in jffs2_alloc_full_dnode() local
137 ret = kmem_cache_alloc(full_dnode_slab, GFP_KERNEL); in jffs2_alloc_full_dnode()
138 dbg_memalloc("%p\n", ret); in jffs2_alloc_full_dnode()
139 return ret; in jffs2_alloc_full_dnode()
150 struct jffs2_raw_dirent *ret; in jffs2_alloc_raw_dirent() local
151 ret = kmem_cache_alloc(raw_dirent_slab, GFP_KERNEL); in jffs2_alloc_raw_dirent()
[all …]
/fs/afs/
Dmain.c54 int ret; in afs_get_client_UUID() local
58 ret = afs_get_MAC_address(afs_uuid.node, sizeof(afs_uuid.node)); in afs_get_client_UUID()
59 if (ret < 0) in afs_get_client_UUID()
60 return ret; in afs_get_client_UUID()
94 int ret; in afs_init() local
98 ret = afs_get_client_UUID(); in afs_init()
99 if (ret < 0) in afs_init()
100 return ret; in afs_init()
103 ret = afs_proc_init(); in afs_init()
104 if (ret < 0) in afs_init()
[all …]
Dvnode.c236 static void afs_vnode_status_update_failed(struct afs_vnode *vnode, int ret) in afs_vnode_status_update_failed() argument
238 _enter("{%x:%u},%d", vnode->fid.vid, vnode->fid.vnode, ret); in afs_vnode_status_update_failed()
244 if (ret == -ENOENT) { in afs_vnode_status_update_failed()
270 int ret; in afs_vnode_fetch_status() local
361 ret = afs_fs_fetch_file_status(server, key, vnode, NULL, in afs_vnode_fetch_status()
364 } while (!afs_volume_release_fileserver(vnode, server, ret)); in afs_vnode_fetch_status()
367 if (ret == 0) { in afs_vnode_fetch_status()
374 _debug("failed [%d]", ret); in afs_vnode_fetch_status()
375 afs_vnode_status_update_failed(vnode, ret); in afs_vnode_fetch_status()
380 _leave(" = %d [cnt %d]", ret, vnode->update_cnt); in afs_vnode_fetch_status()
[all …]
Dwrite.c91 int ret; in afs_fill_page() local
103 ret = afs_vnode_fetch_data(vnode, key, 0, eof, page); in afs_fill_page()
104 if (ret < 0) { in afs_fill_page()
105 if (ret == -ENOENT) { in afs_fill_page()
109 ret = -ESTALE; in afs_fill_page()
113 _leave(" = %d", ret); in afs_fill_page()
114 return ret; in afs_fill_page()
131 int ret; in afs_write_begin() local
157 ret = afs_fill_page(vnode, key, pos, len, page); in afs_write_begin()
158 if (ret < 0) { in afs_write_begin()
[all …]
/fs/ocfs2/cluster/
Dtcp.c255 int ret = 0; in o2net_prep_nsw() local
259 ret = -EAGAIN; in o2net_prep_nsw()
263 ret = idr_get_new(&nn->nn_status_idr, nsw, &nsw->ns_id); in o2net_prep_nsw()
264 if (ret == 0) in o2net_prep_nsw()
268 } while (ret == -EAGAIN); in o2net_prep_nsw()
270 if (ret == 0) { in o2net_prep_nsw()
276 return ret; in o2net_prep_nsw()
377 struct o2net_sock_container *sc, *ret = NULL; in sc_alloc() local
400 ret = sc; in sc_alloc()
411 return ret; in sc_alloc()
[all …]

12345678910>>...15