Home
last modified time | relevance | path

Searched refs:retval (Results 1 – 25 of 85) sorted by relevance

1234

/fs/ext4/
Dmigrate.c32 int retval = 0, needed; in finish_range() local
45 retval = PTR_ERR(path); in finish_range()
64 retval = ext4_journal_restart(handle, needed); in finish_range()
65 if (retval) in finish_range()
68 retval = ext4_journal_extend(handle, needed); in finish_range()
69 if (retval) { in finish_range()
73 retval = ext4_journal_restart(handle, needed); in finish_range()
74 if (retval) in finish_range()
78 retval = ext4_ext_insert_extent(handle, inode, path, &newext); in finish_range()
85 return retval; in finish_range()
[all …]
Dnamei.c976 int retval; in ext4_dx_find_entry() local
1017 retval = ext4_htree_next_block(dir, hash, frame, in ext4_dx_find_entry()
1019 if (retval < 0) { in ext4_dx_find_entry()
1023 *err = retval; in ext4_dx_find_entry()
1026 } while (retval == 1); in ext4_dx_find_entry()
1364 int retval; in make_indexed_dir() local
1372 retval = ext4_journal_get_write_access(handle, bh); in make_indexed_dir()
1373 if (retval) { in make_indexed_dir()
1374 ext4_std_error(dir->i_sb, retval); in make_indexed_dir()
1376 return retval; in make_indexed_dir()
[all …]
/fs/reiserfs/
Dnamei.c117 int retval; in search_by_entry_key() local
119 retval = search_item(sb, key, path); in search_by_entry_key()
120 switch (retval) { in search_by_entry_key()
134 return retval; in search_by_entry_key()
158 retval = bin_search_in_dir_item(de, cpu_key_k_offset(key)); in search_by_entry_key()
160 if (retval != NAME_NOT_FOUND) { in search_by_entry_key()
165 return retval; in search_by_entry_key()
199 int retval = NAME_NOT_FOUND; in reiserfs_match() local
203 retval = in reiserfs_match()
207 return retval; in reiserfs_match()
[all …]
Dinode.c177 static inline int allocation_needed(int retval, b_blocknr_t allocated, in allocation_needed() argument
183 if (retval == POSITION_FOUND && is_indirect_le_ih(ih) && in allocation_needed()
189 static inline int indirect_item_found(int retval, struct item_head *ih) in indirect_item_found() argument
191 return (retval == POSITION_FOUND) && is_indirect_le_ih(ih); in indirect_item_found()
522 int retval = 0; in convert_tail_for_hole() local
537 retval = -ENOMEM; in convert_tail_for_hole()
555 retval = reiserfs_prepare_write(NULL, tail_page, tail_start, tail_end); in convert_tail_for_hole()
556 if (retval) in convert_tail_for_hole()
562 retval = reiserfs_commit_write(NULL, tail_page, tail_start, tail_end); in convert_tail_for_hole()
570 return retval; in convert_tail_for_hole()
[all …]
Dstree.c109 int retval; in comp_keys() local
111 retval = comp_short_keys(le_key, cpu_key); in comp_keys()
112 if (retval) in comp_keys()
113 return retval; in comp_keys()
822 int retval; in search_for_position_by_key() local
832 retval = search_item(p_s_sb, p_cpu_key, p_s_search_path); in search_for_position_by_key()
833 if (retval == IO_ERROR) in search_for_position_by_key()
834 return retval; in search_for_position_by_key()
835 if (retval == ITEM_FOUND) { in search_for_position_by_key()
1331 int retval; in reiserfs_delete_solid_item() local
[all …]
/fs/
Dbinfmt_som.c139 int retval; in map_som_binary() local
151 retval = do_mmap(file, code_start, code_size, prot, in map_som_binary()
154 if (retval < 0 && retval > -1024) in map_som_binary()
162 retval = do_mmap(file, data_start, data_size, in map_som_binary()
166 if (retval < 0 && retval > -1024) in map_som_binary()
172 retval = do_mmap(NULL, bss_start, som_brk - bss_start, in map_som_binary()
175 if (retval > 0 || retval < -1024) in map_som_binary()
176 retval = 0; in map_som_binary()
179 return retval; in map_som_binary()
192 int retval; in load_som_binary() local
[all …]
Dbinfmt_script.c23 int retval; in load_script() local
71 retval = remove_arg_zero(bprm); in load_script()
72 if (retval) in load_script()
73 return retval; in load_script()
74 retval = copy_strings_kernel(1, &bprm->interp, bprm); in load_script()
75 if (retval < 0) return retval; in load_script()
78 retval = copy_strings_kernel(1, &i_arg, bprm); in load_script()
79 if (retval < 0) return retval; in load_script()
82 retval = copy_strings_kernel(1, &i_name, bprm); in load_script()
83 if (retval) return retval; in load_script()
[all …]
Dbinfmt_em86.c30 int retval; in load_em86() local
67 retval = copy_strings_kernel(1, &bprm->filename, bprm); in load_em86()
68 if (retval < 0) return retval; in load_em86()
71 retval = copy_strings_kernel(1, &i_arg, bprm); in load_em86()
72 if (retval < 0) return retval; in load_em86()
75 retval = copy_strings_kernel(1, &i_name, bprm); in load_em86()
76 if (retval < 0) return retval; in load_em86()
90 retval = prepare_binprm(bprm); in load_em86()
91 if (retval < 0) in load_em86()
92 return retval; in load_em86()
Dread_write.c108 loff_t retval; in default_llseek() local
117 retval = file->f_pos; in default_llseek()
122 retval = -EINVAL; in default_llseek()
128 retval = offset; in default_llseek()
132 return retval; in default_llseek()
152 off_t retval; in SYSCALL_DEFINE3() local
156 retval = -EBADF; in SYSCALL_DEFINE3()
161 retval = -EINVAL; in SYSCALL_DEFINE3()
164 retval = res; in SYSCALL_DEFINE3()
165 if (res != (loff_t)retval) in SYSCALL_DEFINE3()
[all …]
Dexec.c956 int i, ch, retval; in flush_old_exec() local
963 retval = de_thread(current); in flush_old_exec()
964 if (retval) in flush_old_exec()
972 retval = exec_mmap(bprm->mm); in flush_old_exec()
973 if (retval) in flush_old_exec()
1030 return retval; in flush_old_exec()
1096 int retval; in prepare_binprm() local
1126 retval = security_bprm_set_creds(bprm); in prepare_binprm()
1127 if (retval) in prepare_binprm()
1128 return retval; in prepare_binprm()
[all …]
Dbinfmt_aout.c226 int retval; in load_aout_binary() local
256 retval = flush_old_exec(bprm); in load_aout_binary()
257 if (retval) in load_aout_binary()
258 return retval; in load_aout_binary()
363 retval = set_brk(current->mm->start_brk, current->mm->brk); in load_aout_binary()
364 if (retval < 0) { in load_aout_binary()
366 return retval; in load_aout_binary()
369 retval = setup_arg_pages(bprm, STACK_TOP, EXSTACK_DEFAULT); in load_aout_binary()
370 if (retval < 0) { in load_aout_binary()
373 return retval; in load_aout_binary()
[all …]
Dbinfmt_elf.c400 int retval, i, size; in load_elf_interp() local
429 retval = kernel_read(interpreter, interp_elf_ex->e_phoff, in load_elf_interp()
432 if (retval != size) { in load_elf_interp()
433 if (retval < 0) in load_elf_interp()
434 error = retval; in load_elf_interp()
580 int retval, i; in load_elf_binary() local
595 retval = -ENOMEM; in load_elf_binary()
602 retval = -ENOEXEC; in load_elf_binary()
621 retval = -ENOMEM; in load_elf_binary()
626 retval = kernel_read(bprm->file, loc->elf_ex.e_phoff, in load_elf_binary()
[all …]
Dopen.c35 int retval = -ENODEV; in vfs_statfs() local
38 retval = -ENOSYS; in vfs_statfs()
41 retval = security_sb_statfs(dentry); in vfs_statfs()
42 if (retval) in vfs_statfs()
43 return retval; in vfs_statfs()
44 retval = dentry->d_sb->s_op->statfs(dentry, buf); in vfs_statfs()
45 if (retval == 0 && buf->f_frsize == 0) in vfs_statfs()
49 return retval; in vfs_statfs()
57 int retval; in vfs_statfs_native() local
59 retval = vfs_statfs(dentry, &st); in vfs_statfs_native()
[all …]
Dbinfmt_misc.c112 int retval; in load_misc_binary() local
115 retval = -ENOEXEC; in load_misc_binary()
119 retval = -ENOEXEC; in load_misc_binary()
133 retval = remove_arg_zero(bprm); in load_misc_binary()
134 if (retval) in load_misc_binary()
145 retval = fd_binary; in load_misc_binary()
168 retval = copy_strings_kernel (1, &bprm->interp, bprm); in load_misc_binary()
169 if (retval < 0) in load_misc_binary()
174 retval = copy_strings_kernel (1, &iname_addr, bprm); in load_misc_binary()
175 if (retval < 0) in load_misc_binary()
[all …]
/fs/yaffs2/
Dyaffs_mtdif2.c44 int retval = 0; in nandmtd2_WriteChunkWithTagsToNAND() local
77 retval = mtd->write_oob(mtd, addr, &ops); in nandmtd2_WriteChunkWithTagsToNAND()
81 retval = in nandmtd2_WriteChunkWithTagsToNAND()
85 retval = in nandmtd2_WriteChunkWithTagsToNAND()
91 if (retval == 0) in nandmtd2_WriteChunkWithTagsToNAND()
105 int retval = 0; in nandmtd2_ReadChunkWithTagsFromNAND() local
130 retval = mtd->read(mtd, addr, dev->totalBytesPerChunk, in nandmtd2_ReadChunkWithTagsFromNAND()
139 retval = mtd->read_oob(mtd, addr, &ops); in nandmtd2_ReadChunkWithTagsFromNAND()
144 retval = mtd->read_ecc(mtd, addr, dev->nDataBytesPerChunk, in nandmtd2_ReadChunkWithTagsFromNAND()
149 retval = in nandmtd2_ReadChunkWithTagsFromNAND()
[all …]
Dyaffs_mtdif1.c99 int retval; in nandmtd1_WriteChunkWithTagsToNAND() local
136 retval = mtd->write_oob(mtd, addr, &ops); in nandmtd1_WriteChunkWithTagsToNAND()
137 if (retval) { in nandmtd1_WriteChunkWithTagsToNAND()
140 chunkInNAND, retval); in nandmtd1_WriteChunkWithTagsToNAND()
142 return retval ? YAFFS_FAIL : YAFFS_OK; in nandmtd1_WriteChunkWithTagsToNAND()
147 static int rettags(yaffs_ExtendedTags *etags, int eccResult, int retval) in rettags() argument
153 return retval; in rettags()
178 int retval; in nandmtd1_ReadChunkWithTagsFromNAND() local
197 retval = mtd->read_oob(mtd, addr, &ops); in nandmtd1_ReadChunkWithTagsFromNAND()
198 if (retval) { in nandmtd1_ReadChunkWithTagsFromNAND()
[all …]
Dyaffs_mtdif.c82 int retval = 0; in nandmtd_WriteChunkToNAND() local
89 retval = mtd->write(mtd, addr, dev->nDataBytesPerChunk, in nandmtd_WriteChunkToNAND()
104 retval = mtd->write_oob(mtd, addr, &ops); in nandmtd_WriteChunkToNAND()
111 retval = in nandmtd_WriteChunkToNAND()
116 retval = in nandmtd_WriteChunkToNAND()
122 retval = in nandmtd_WriteChunkToNAND()
126 retval = in nandmtd_WriteChunkToNAND()
132 if (retval == 0) in nandmtd_WriteChunkToNAND()
146 int retval = 0; in nandmtd_ReadChunkFromNAND() local
153 retval = mtd->read(mtd, addr, dev->nDataBytesPerChunk, in nandmtd_ReadChunkFromNAND()
[all …]
/fs/affs/
Damigaffs.c82 int offset, retval; in affs_remove_hash() local
93 retval = -ENOENT; in affs_remove_hash()
105 retval = 0; in affs_remove_hash()
121 return retval; in affs_remove_hash()
155 int retval; in affs_remove_link() local
158 retval = -EIO; in affs_remove_link()
175 retval = PTR_ERR(dir); in affs_remove_link()
181 retval = affs_remove_hash(dir, link_bh); in affs_remove_link()
182 if (retval) in affs_remove_link()
187 retval = affs_insert_hash(dir, bh); in affs_remove_link()
[all …]
/fs/9p/
Dvfs_addr.c52 int retval; in v9fs_vfs_readpage() local
60 retval = v9fs_file_readn(filp, buffer, NULL, offset, PAGE_CACHE_SIZE); in v9fs_vfs_readpage()
61 if (retval < 0) in v9fs_vfs_readpage()
64 memset(buffer + retval, 0, PAGE_CACHE_SIZE - retval); in v9fs_vfs_readpage()
67 retval = 0; in v9fs_vfs_readpage()
72 return retval; in v9fs_vfs_readpage()
Dvfs_inode.c685 int retval; in v9fs_vfs_rename() local
688 retval = 0; in v9fs_vfs_rename()
697 retval = PTR_ERR(olddirfid); in v9fs_vfs_rename()
703 retval = PTR_ERR(newdirfid); in v9fs_vfs_rename()
711 retval = -EXDEV; in v9fs_vfs_rename()
718 retval = p9_client_wstat(oldfid, &wstat); in v9fs_vfs_rename()
727 return retval; in v9fs_vfs_rename()
777 int retval; in v9fs_vfs_setattr() local
783 retval = -EPERM; in v9fs_vfs_setattr()
810 retval = p9_client_wstat(fid, &wstat); in v9fs_vfs_setattr()
[all …]
Dvfs_super.c119 int retval = 0; in v9fs_get_sb() local
130 retval = PTR_ERR(fid); in v9fs_get_sb()
136 retval = PTR_ERR(st); in v9fs_get_sb()
142 retval = PTR_ERR(sb); in v9fs_get_sb()
149 retval = PTR_ERR(inode); in v9fs_get_sb()
158 retval = -ENOMEM; in v9fs_get_sb()
190 return retval; in v9fs_get_sb()
/fs/qnx4/
Dnamei.c161 int retval; in qnx4_rmdir() local
174 retval = -EIO; in qnx4_rmdir()
179 retval = -ENOTEMPTY; in qnx4_rmdir()
195 retval = 0; in qnx4_rmdir()
201 return retval; in qnx4_rmdir()
209 int retval; in qnx4_unlink() local
222 retval = -EIO; in qnx4_unlink()
225 retval = -EPERM; in qnx4_unlink()
240 retval = 0; in qnx4_unlink()
246 return retval; in qnx4_unlink()
/fs/coda/
Dpsdev.c103 ssize_t retval = 0, count = 0; in coda_psdev_write() local
135 retval = -EFAULT; in coda_psdev_write()
147 retval = error; in coda_psdev_write()
169 retval = -ESRCH; in coda_psdev_write()
182 retval = -EFAULT; in coda_psdev_write()
201 return(count ? count : retval); in coda_psdev_write()
214 ssize_t retval = 0, count = 0; in coda_psdev_read() local
226 retval = -EAGAIN; in coda_psdev_read()
230 retval = -ERESTARTSYS; in coda_psdev_read()
239 if (retval) in coda_psdev_read()
[all …]
/fs/ext3/
Dnamei.c971 int retval; in ext3_dx_find_entry() local
1012 retval = ext3_htree_next_block(dir, hash, frame, in ext3_dx_find_entry()
1014 if (retval < 0) { in ext3_dx_find_entry()
1018 *err = retval; in ext3_dx_find_entry()
1021 } while (retval == 1); in ext3_dx_find_entry()
1354 int retval; in make_indexed_dir() local
1362 retval = ext3_journal_get_write_access(handle, bh); in make_indexed_dir()
1363 if (retval) { in make_indexed_dir()
1364 ext3_std_error(dir->i_sb, retval); in make_indexed_dir()
1366 return retval; in make_indexed_dir()
[all …]
/fs/hfs/
Dbrec.c20 __be16 retval[2]; in hfs_brec_lenoff() local
24 hfs_bnode_read(node, retval, dataoff, 4); in hfs_brec_lenoff()
25 *off = be16_to_cpu(retval[1]); in hfs_brec_lenoff()
26 return be16_to_cpu(retval[0]) - *off; in hfs_brec_lenoff()
32 u16 retval, recoff; in hfs_brec_keylen() local
40 retval = node->tree->max_key_len + 2; in hfs_brec_keylen()
42 retval = node->tree->max_key_len + 1; in hfs_brec_keylen()
48 retval = hfs_bnode_read_u16(node, recoff) + 2; in hfs_brec_keylen()
49 if (retval > node->tree->max_key_len + 2) { in hfs_brec_keylen()
51 retval); in hfs_brec_keylen()
[all …]

1234