/fs/reiserfs/ |
D | namei.c | 123 int retval; in search_by_entry_key() local 125 retval = search_item(sb, key, path); in search_by_entry_key() 126 switch (retval) { in search_by_entry_key() 140 return retval; in search_by_entry_key() 164 retval = bin_search_in_dir_item(de, cpu_key_k_offset(key)); in search_by_entry_key() 166 if (retval != NAME_NOT_FOUND) { in search_by_entry_key() 174 return retval; in search_by_entry_key() 211 int retval = NAME_NOT_FOUND; in reiserfs_match() local 215 retval = in reiserfs_match() 219 return retval; in reiserfs_match() [all …]
|
D | inode.c | 214 static inline int allocation_needed(int retval, b_blocknr_t allocated, in allocation_needed() argument 220 if (retval == POSITION_FOUND && is_indirect_le_ih(ih) && in allocation_needed() 226 static inline int indirect_item_found(int retval, struct item_head *ih) in indirect_item_found() argument 228 return (retval == POSITION_FOUND) && is_indirect_le_ih(ih); in indirect_item_found() 585 int retval = 0; in convert_tail_for_hole() local 601 retval = -ENOMEM; in convert_tail_for_hole() 620 retval = __reiserfs_write_begin(tail_page, tail_start, in convert_tail_for_hole() 622 if (retval) in convert_tail_for_hole() 628 retval = reiserfs_commit_write(NULL, tail_page, tail_start, tail_end); in convert_tail_for_hole() 636 return retval; in convert_tail_for_hole() [all …]
|
D | stree.c | 71 int retval; in comp_keys() local 73 retval = comp_short_keys(le_key, cpu_key); in comp_keys() 74 if (retval) in comp_keys() 75 return retval; in comp_keys() 595 int node_level, retval; in search_by_key() local 743 retval = bin_search(key, item_head(bh, 0), in search_by_key() 750 return retval; in search_by_key() 758 if (retval == ITEM_FOUND) in search_by_key() 837 int retval; in search_for_position_by_key() local 847 retval = search_item(sb, p_cpu_key, search_path); in search_for_position_by_key() [all …]
|
/fs/ext4/ |
D | migrate.c | 25 int retval = 0, needed; in finish_range() local 39 retval = PTR_ERR(path); in finish_range() 59 retval = ext4_journal_restart(handle, needed); in finish_range() 61 if (retval) in finish_range() 64 retval = ext4_journal_extend(handle, needed); in finish_range() 65 if (retval) { in finish_range() 70 retval = ext4_journal_restart(handle, needed); in finish_range() 72 if (retval) in finish_range() 76 retval = ext4_ext_insert_extent(handle, inode, &path, &newext, 0); in finish_range() 82 return retval; in finish_range() [all …]
|
D | namei.c | 1454 int i, namelen, retval; in __ext4_find_entry() local 1518 retval = ext4_bread_batch(dir, block, ra_max, in __ext4_find_entry() 1520 if (retval) { in __ext4_find_entry() 1521 ret = ERR_PTR(retval); in __ext4_find_entry() 1630 int retval; in ext4_dx_find_entry() local 1644 retval = search_dirblock(bh, dir, fname, in ext4_dx_find_entry() 1647 if (retval == 1) in ext4_dx_find_entry() 1650 if (retval == -1) { in ext4_dx_find_entry() 1656 retval = ext4_htree_next_block(dir, fname->hinfo.hash, frame, in ext4_dx_find_entry() 1658 if (retval < 0) { in ext4_dx_find_entry() [all …]
|
D | mmp.c | 145 int retval; in kmmpd() local 170 retval = write_mmp_block(sb, bh); in kmmpd() 175 if (retval) { in kmmpd() 206 retval = read_mmp_block(sb, &bh_check, mmp_block); in kmmpd() 207 if (retval) { in kmmpd() 209 retval); in kmmpd() 223 retval = -EBUSY; in kmmpd() 245 retval = write_mmp_block(sb, bh); in kmmpd() 251 return retval; in kmmpd() 282 int retval; in ext4_multi_mount_protect() local [all …]
|
D | acl.c | 150 int retval; in ext4_get_acl() local 162 retval = ext4_xattr_get(inode, name_index, "", NULL, 0); in ext4_get_acl() 163 if (retval > 0) { in ext4_get_acl() 164 value = kmalloc(retval, GFP_NOFS); in ext4_get_acl() 167 retval = ext4_xattr_get(inode, name_index, "", value, retval); in ext4_get_acl() 169 if (retval > 0) in ext4_get_acl() 170 acl = ext4_acl_from_disk(value, retval); in ext4_get_acl() 171 else if (retval == -ENODATA || retval == -ENOSYS) in ext4_get_acl() 174 acl = ERR_PTR(retval); in ext4_get_acl()
|
/fs/ |
D | fhandle.c | 21 long retval; in do_sys_name_to_handle() local 49 retval = exportfs_encode_fh(path->dentry, in do_sys_name_to_handle() 52 handle->handle_type = retval; in do_sys_name_to_handle() 57 (retval == FILEID_INVALID) || (retval == -ENOSPC)) { in do_sys_name_to_handle() 68 retval = -EOVERFLOW; in do_sys_name_to_handle() 70 retval = 0; in do_sys_name_to_handle() 75 retval = -EFAULT; in do_sys_name_to_handle() 77 return retval; in do_sys_name_to_handle() 142 int retval = 0; in do_handle_to_path() local 147 retval = PTR_ERR(path->mnt); in do_handle_to_path() [all …]
|
D | binfmt_script.c | 39 int retval; in load_script() local 117 retval = remove_arg_zero(bprm); in load_script() 118 if (retval) in load_script() 119 return retval; in load_script() 120 retval = copy_strings_kernel(1, &bprm->interp, bprm); in load_script() 121 if (retval < 0) in load_script() 122 return retval; in load_script() 125 retval = copy_strings_kernel(1, &i_arg, bprm); in load_script() 126 if (retval < 0) in load_script() 127 return retval; in load_script() [all …]
|
D | binfmt_em86.c | 31 int retval; in load_em86() local 71 retval = copy_strings_kernel(1, &bprm->filename, bprm); in load_em86() 72 if (retval < 0) return retval; in load_em86() 75 retval = copy_strings_kernel(1, &i_arg, bprm); in load_em86() 76 if (retval < 0) return retval; in load_em86() 79 retval = copy_strings_kernel(1, &i_name, bprm); in load_em86() 80 if (retval < 0) return retval; in load_em86() 94 retval = prepare_binprm(bprm); in load_em86() 95 if (retval < 0) in load_em86() 96 return retval; in load_em86()
|
D | binfmt_aout.c | 124 int retval; in load_aout_binary() local 154 retval = flush_old_exec(bprm); in load_aout_binary() 155 if (retval) in load_aout_binary() 156 return retval; in load_aout_binary() 173 retval = setup_arg_pages(bprm, STACK_TOP, EXSTACK_DEFAULT); in load_aout_binary() 174 if (retval < 0) in load_aout_binary() 175 return retval; in load_aout_binary() 242 retval = set_brk(current->mm->start_brk, current->mm->brk); in load_aout_binary() 243 if (retval < 0) in load_aout_binary() 244 return retval; in load_aout_binary() [all …]
|
D | exec.c | 1260 int retval; in flush_old_exec() local 1266 retval = de_thread(current); in flush_old_exec() 1267 if (retval) in flush_old_exec() 1281 retval = exec_mmap(bprm->mm); in flush_old_exec() 1282 if (retval) in flush_old_exec() 1309 return retval; in flush_old_exec() 1574 int retval; in prepare_binprm() local 1580 retval = security_bprm_set_creds(bprm); in prepare_binprm() 1581 if (retval) in prepare_binprm() 1582 return retval; in prepare_binprm() [all …]
|
D | binfmt_misc.c | 136 int retval; in load_misc_binary() local 139 retval = -ENOEXEC; in load_misc_binary() 141 return retval; in load_misc_binary() 150 return retval; in load_misc_binary() 153 retval = -ENOENT; in load_misc_binary() 158 retval = remove_arg_zero(bprm); in load_misc_binary() 159 if (retval) in load_misc_binary() 171 retval = fd_binary; in load_misc_binary() 193 retval = copy_strings_kernel(1, &bprm->interp, bprm); in load_misc_binary() 194 if (retval < 0) in load_misc_binary() [all …]
|
/fs/9p/ |
D | vfs_addr.c | 44 int retval, err; in v9fs_fid_readpage() local 50 retval = v9fs_readpage_from_fscache(inode, page); in v9fs_fid_readpage() 51 if (retval == 0) in v9fs_fid_readpage() 52 return retval; in v9fs_fid_readpage() 56 retval = p9_client_read(fid, page_offset(page), &to, &err); in v9fs_fid_readpage() 59 retval = err; in v9fs_fid_readpage() 63 zero_user(page, retval, PAGE_SIZE - retval); in v9fs_fid_readpage() 68 retval = 0; in v9fs_fid_readpage() 72 return retval; in v9fs_fid_readpage() 180 int retval; in v9fs_vfs_writepage() local [all …]
|
D | acl.c | 58 int retval = 0; in v9fs_get_acl() local 77 retval = -EIO; in v9fs_get_acl() 85 return retval; in v9fs_get_acl() 119 int retval; in v9fs_set_acl() local 131 retval = posix_acl_to_xattr(&init_user_ns, acl, buffer, size); in v9fs_set_acl() 132 if (retval < 0) in v9fs_set_acl() 144 retval = v9fs_fid_xattr_set(fid, name, buffer, size, 0); in v9fs_set_acl() 147 return retval; in v9fs_set_acl() 152 int retval = 0; in v9fs_acl_chmod() local 159 retval = __posix_acl_chmod(&acl, GFP_KERNEL, inode->i_mode); in v9fs_acl_chmod() [all …]
|
D | xattr.c | 28 ssize_t retval; in v9fs_fid_xattr_get() local 39 retval = PTR_ERR(attr_fid); in v9fs_fid_xattr_get() 41 retval); in v9fs_fid_xattr_get() 42 return retval; in v9fs_fid_xattr_get() 46 retval = attr_size; in v9fs_fid_xattr_get() 48 retval = -ERANGE; in v9fs_fid_xattr_get() 51 retval = p9_client_read(attr_fid, 0, &to, &err); in v9fs_fid_xattr_get() 53 retval = err; in v9fs_fid_xattr_get() 56 return retval; in v9fs_fid_xattr_get() 108 int retval, err; in v9fs_fid_xattr_set() local [all …]
|
D | vfs_file.c | 411 ssize_t retval; in v9fs_file_write_iter() local 415 retval = generic_write_checks(iocb, from); in v9fs_file_write_iter() 416 if (retval <= 0) in v9fs_file_write_iter() 417 return retval; in v9fs_file_write_iter() 420 retval = p9_client_write(file->private_data, iocb->ki_pos, from, &err); in v9fs_file_write_iter() 421 if (retval > 0) { in v9fs_file_write_iter() 426 pg_end = (origin + retval - 1) >> PAGE_SHIFT; in v9fs_file_write_iter() 430 iocb->ki_pos += retval; in v9fs_file_write_iter() 440 return retval; in v9fs_file_write_iter() 451 int retval; in v9fs_file_fsync() local [all …]
|
D | vfs_inode.c | 491 int retval; in v9fs_qid_iget() local 516 retval = v9fs_init_inode(v9ses, inode, umode, rdev); in v9fs_qid_iget() 517 if (retval) in v9fs_qid_iget() 526 return ERR_PTR(retval); in v9fs_qid_iget() 589 int retval = -EOPNOTSUPP; in v9fs_remove() local 600 retval = PTR_ERR(dfid); in v9fs_remove() 601 p9_debug(P9_DEBUG_VFS, "fid lookup failed %d\n", retval); in v9fs_remove() 602 return retval; in v9fs_remove() 605 retval = p9_client_unlinkat(dfid, dentry->d_name.name, in v9fs_remove() 607 if (retval == -EOPNOTSUPP) { in v9fs_remove() [all …]
|
D | vfs_super.c | 116 int retval = 0; in v9fs_mount() local 126 retval = PTR_ERR(fid); in v9fs_mount() 132 retval = PTR_ERR(sb); in v9fs_mount() 135 retval = v9fs_fill_super(sb, v9ses, flags); in v9fs_mount() 136 if (retval) in v9fs_mount() 146 retval = PTR_ERR(inode); in v9fs_mount() 152 retval = -ENOMEM; in v9fs_mount() 160 retval = PTR_ERR(st); in v9fs_mount() 170 retval = PTR_ERR(st); in v9fs_mount() 180 retval = v9fs_get_acl(inode, fid); in v9fs_mount() [all …]
|
D | vfs_dentry.c | 77 int retval; in v9fs_lookup_revalidate() local 85 retval = v9fs_refresh_inode_dotl(fid, inode); in v9fs_lookup_revalidate() 87 retval = v9fs_refresh_inode(fid, inode); in v9fs_lookup_revalidate() 88 if (retval == -ENOENT) in v9fs_lookup_revalidate() 90 if (retval < 0) in v9fs_lookup_revalidate() 91 return retval; in v9fs_lookup_revalidate()
|
/fs/affs/ |
D | amigaffs.c | 81 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() 148 int retval; in affs_remove_link() local 151 retval = -EIO; in affs_remove_link() 168 retval = PTR_ERR(dir); in affs_remove_link() 178 retval = affs_remove_hash(dir, link_bh); in affs_remove_link() 179 if (retval) { in affs_remove_link() 186 retval = affs_insert_hash(dir, bh); in affs_remove_link() [all …]
|
D | namei.c | 50 int retval; in __affs_hash_dentry() local 53 retval = affs_check_name(qstr->name, qstr->len, notruncate); in __affs_hash_dentry() 54 if (retval) in __affs_hash_dentry() 55 return retval; in __affs_hash_dentry() 407 int retval; in affs_rename() local 409 retval = affs_check_name(new_dentry->d_name.name, in affs_rename() 413 if (retval) in affs_rename() 414 return retval; in affs_rename() 418 retval = affs_remove_header(new_dentry); in affs_rename() 419 if (retval) in affs_rename() [all …]
|
/fs/xfs/libxfs/ |
D | xfs_attr.c | 530 int newsize, forkoff, retval; in xfs_attr_shortform_addname() local 534 retval = xfs_attr_shortform_lookup(args); in xfs_attr_shortform_addname() 535 if ((args->flags & ATTR_REPLACE) && (retval == -ENOATTR)) { in xfs_attr_shortform_addname() 536 return retval; in xfs_attr_shortform_addname() 537 } else if (retval == -EEXIST) { in xfs_attr_shortform_addname() 539 return retval; in xfs_attr_shortform_addname() 540 retval = xfs_attr_shortform_remove(args); in xfs_attr_shortform_addname() 541 if (retval) in xfs_attr_shortform_addname() 542 return retval; in xfs_attr_shortform_addname() 583 int retval, error, forkoff; in xfs_attr_leaf_addname() local [all …]
|
/fs/ext2/ |
D | acl.c | 149 int retval; in ext2_get_acl() local 161 retval = ext2_xattr_get(inode, name_index, "", NULL, 0); in ext2_get_acl() 162 if (retval > 0) { in ext2_get_acl() 163 value = kmalloc(retval, GFP_KERNEL); in ext2_get_acl() 166 retval = ext2_xattr_get(inode, name_index, "", value, retval); in ext2_get_acl() 168 if (retval > 0) in ext2_get_acl() 169 acl = ext2_acl_from_disk(value, retval); in ext2_get_acl() 170 else if (retval == -ENODATA || retval == -ENOSYS) in ext2_get_acl() 173 acl = ERR_PTR(retval); in ext2_get_acl()
|
/fs/coda/ |
D | psdev.c | 99 ssize_t retval = 0, count = 0; in coda_psdev_write() local 127 retval = -ENOMEM; in coda_psdev_write() 132 retval = -EFAULT; in coda_psdev_write() 143 retval = error; in coda_psdev_write() 165 retval = -ESRCH; in coda_psdev_write() 179 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() [all …]
|