• Home
  • Raw
  • Download

Lines Matching refs:retval

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()
1661 retval); in ext4_dx_find_entry()
1662 bh = ERR_PTR(retval); in ext4_dx_find_entry()
1665 } while (retval == 1); in ext4_dx_find_entry()
2047 int retval; in make_indexed_dir() local
2059 retval = ext4_journal_get_write_access(handle, bh); in make_indexed_dir()
2060 if (retval) { in make_indexed_dir()
2061 ext4_std_error(dir->i_sb, retval); in make_indexed_dir()
2063 return retval; in make_indexed_dir()
2123 retval = ext4_handle_dirty_dx_node(handle, dir, frame->bh); in make_indexed_dir()
2124 if (retval) in make_indexed_dir()
2126 retval = ext4_handle_dirty_dirblock(handle, dir, bh2); in make_indexed_dir()
2127 if (retval) in make_indexed_dir()
2132 retval = PTR_ERR(de); in make_indexed_dir()
2136 retval = add_dirent_to_buf(handle, fname, dir, inode, de, bh2); in make_indexed_dir()
2143 if (retval) in make_indexed_dir()
2147 return retval; in make_indexed_dir()
2169 int retval; in ext4_add_entry() local
2190 retval = ext4_fname_setup_filename(dir, &dentry->d_name, 0, &fname); in ext4_add_entry()
2191 if (retval) in ext4_add_entry()
2192 return retval; in ext4_add_entry()
2195 retval = ext4_try_add_inline_entry(handle, &fname, dir, inode); in ext4_add_entry()
2196 if (retval < 0) in ext4_add_entry()
2198 if (retval == 1) { in ext4_add_entry()
2199 retval = 0; in ext4_add_entry()
2205 retval = ext4_dx_add_entry(handle, &fname, dir, inode); in ext4_add_entry()
2206 if (!retval || (retval != ERR_BAD_DX_DIR)) in ext4_add_entry()
2221 retval = PTR_ERR(bh); in ext4_add_entry()
2225 retval = add_dirent_to_buf(handle, &fname, dir, inode, in ext4_add_entry()
2227 if (retval != -ENOSPC) in ext4_add_entry()
2232 retval = make_indexed_dir(handle, &fname, dir, in ext4_add_entry()
2242 retval = PTR_ERR(bh); in ext4_add_entry()
2253 retval = add_dirent_to_buf(handle, &fname, dir, inode, de, bh); in ext4_add_entry()
2257 if (retval == 0) in ext4_add_entry()
2259 return retval; in ext4_add_entry()
3059 int retval; in ext4_rmdir() local
3070 retval = dquot_initialize(dir); in ext4_rmdir()
3071 if (retval) in ext4_rmdir()
3072 return retval; in ext4_rmdir()
3073 retval = dquot_initialize(d_inode(dentry)); in ext4_rmdir()
3074 if (retval) in ext4_rmdir()
3075 return retval; in ext4_rmdir()
3077 retval = -ENOENT; in ext4_rmdir()
3086 retval = -EFSCORRUPTED; in ext4_rmdir()
3090 retval = -ENOTEMPTY; in ext4_rmdir()
3097 retval = PTR_ERR(handle); in ext4_rmdir()
3105 retval = ext4_delete_entry(handle, dir, de, bh); in ext4_rmdir()
3106 if (retval) in ext4_rmdir()
3141 return retval; in ext4_rmdir()
3146 int retval; in ext4_unlink() local
3158 retval = dquot_initialize(dir); in ext4_unlink()
3159 if (retval) in ext4_unlink()
3160 return retval; in ext4_unlink()
3161 retval = dquot_initialize(d_inode(dentry)); in ext4_unlink()
3162 if (retval) in ext4_unlink()
3163 return retval; in ext4_unlink()
3165 retval = -ENOENT; in ext4_unlink()
3174 retval = -EFSCORRUPTED; in ext4_unlink()
3181 retval = PTR_ERR(handle); in ext4_unlink()
3189 retval = ext4_delete_entry(handle, dir, de, bh); in ext4_unlink()
3190 if (retval) in ext4_unlink()
3220 trace_ext4_unlink_exit(dentry, retval); in ext4_unlink()
3221 return retval; in ext4_unlink()
3418 int *retval, in ext4_get_first_dir_block() argument
3430 *retval = PTR_ERR(bh); in ext4_get_first_dir_block()
3440 return ext4_get_first_inline_block(inode, parent_de, retval); in ext4_get_first_dir_block()
3463 int retval; in ext4_rename_dir_prepare() local
3466 &retval, &ent->parent_de, in ext4_rename_dir_prepare()
3469 return retval; in ext4_rename_dir_prepare()
3479 int retval; in ext4_rename_dir_finish() local
3485 retval = ext4_handle_dirty_dx_node(handle, in ext4_rename_dir_finish()
3489 retval = ext4_handle_dirty_dirblock(handle, ent->inode, in ext4_rename_dir_finish()
3493 retval = ext4_mark_inode_dirty(handle, ent->inode); in ext4_rename_dir_finish()
3495 if (retval) { in ext4_rename_dir_finish()
3496 ext4_std_error(ent->dir->i_sb, retval); in ext4_rename_dir_finish()
3497 return retval; in ext4_rename_dir_finish()
3505 int retval; in ext4_setent() local
3508 retval = ext4_journal_get_write_access(handle, ent->bh); in ext4_setent()
3509 if (retval) in ext4_setent()
3510 return retval; in ext4_setent()
3520 retval = ext4_handle_dirty_dirblock(handle, ent->dir, ent->bh); in ext4_setent()
3521 if (unlikely(retval)) { in ext4_setent()
3522 ext4_std_error(ent->dir->i_sb, retval); in ext4_setent()
3523 return retval; in ext4_setent()
3535 int retval = -ENOENT; in ext4_find_delete_entry() local
3543 retval = ext4_delete_entry(handle, dir, de, bh); in ext4_find_delete_entry()
3546 return retval; in ext4_find_delete_entry()
3552 int retval; in ext4_rename_delete() local
3564 retval = ext4_find_delete_entry(handle, ent->dir, in ext4_rename_delete()
3567 retval = ext4_delete_entry(handle, ent->dir, ent->de, ent->bh); in ext4_rename_delete()
3568 if (retval == -ENOENT) { in ext4_rename_delete()
3569 retval = ext4_find_delete_entry(handle, ent->dir, in ext4_rename_delete()
3574 if (retval) { in ext4_rename_delete()
3577 ent->dir->i_nlink, retval); in ext4_rename_delete()
3649 int retval; in ext4_rename() local
3665 retval = dquot_initialize(old.dir); in ext4_rename()
3666 if (retval) in ext4_rename()
3667 return retval; in ext4_rename()
3668 retval = dquot_initialize(new.dir); in ext4_rename()
3669 if (retval) in ext4_rename()
3670 return retval; in ext4_rename()
3675 retval = dquot_initialize(new.inode); in ext4_rename()
3676 if (retval) in ext4_rename()
3677 return retval; in ext4_rename()
3689 retval = -ENOENT; in ext4_rename()
3696 retval = PTR_ERR(new.bh); in ext4_rename()
3714 retval = PTR_ERR(handle); in ext4_rename()
3721 retval = PTR_ERR(whiteout); in ext4_rename()
3732 retval = -ENOTEMPTY; in ext4_rename()
3736 retval = -EMLINK; in ext4_rename()
3740 retval = ext4_rename_dir_prepare(handle, &old); in ext4_rename()
3741 if (retval) in ext4_rename()
3760 retval = ext4_setent(handle, &old, whiteout->i_ino, in ext4_rename()
3762 if (retval) in ext4_rename()
3767 retval = ext4_add_entry(handle, new.dentry, old.inode); in ext4_rename()
3768 if (retval) in ext4_rename()
3771 retval = ext4_setent(handle, &new, in ext4_rename()
3773 if (retval) in ext4_rename()
3801 retval = ext4_rename_dir_finish(handle, &old, new.dir->i_ino); in ext4_rename()
3802 if (retval) in ext4_rename()
3823 retval = 0; in ext4_rename()
3830 if (retval) in ext4_rename()
3837 return retval; in ext4_rename()
3855 int retval; in ext4_cross_rename() local
3866 retval = dquot_initialize(old.dir); in ext4_cross_rename()
3867 if (retval) in ext4_cross_rename()
3868 return retval; in ext4_cross_rename()
3869 retval = dquot_initialize(new.dir); in ext4_cross_rename()
3870 if (retval) in ext4_cross_rename()
3871 return retval; in ext4_cross_rename()
3883 retval = -ENOENT; in ext4_cross_rename()
3890 retval = PTR_ERR(new.bh); in ext4_cross_rename()
3903 retval = PTR_ERR(handle); in ext4_cross_rename()
3913 retval = ext4_rename_dir_prepare(handle, &old); in ext4_cross_rename()
3914 if (retval) in ext4_cross_rename()
3919 retval = ext4_rename_dir_prepare(handle, &new); in ext4_cross_rename()
3920 if (retval) in ext4_cross_rename()
3931 retval = -EMLINK; in ext4_cross_rename()
3938 retval = ext4_setent(handle, &new, old.inode->i_ino, old.de->file_type); in ext4_cross_rename()
3939 if (retval) in ext4_cross_rename()
3942 retval = ext4_setent(handle, &old, new.inode->i_ino, new_file_type); in ext4_cross_rename()
3943 if (retval) in ext4_cross_rename()
3957 retval = ext4_rename_dir_finish(handle, &old, new.dir->i_ino); in ext4_cross_rename()
3958 if (retval) in ext4_cross_rename()
3962 retval = ext4_rename_dir_finish(handle, &new, old.dir->i_ino); in ext4_cross_rename()
3963 if (retval) in ext4_cross_rename()
3968 retval = 0; in ext4_cross_rename()
3977 return retval; in ext4_cross_rename()