Lines Matching refs:retval
971 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()
1383 bh2 = ext3_append (handle, dir, &block, &retval); in make_indexed_dir()
1386 return retval; in make_indexed_dir()
1419 de = do_split(handle,dir, &bh, frame, &hinfo, &retval); in make_indexed_dir()
1422 return retval; in make_indexed_dir()
1445 int retval; in ext3_add_entry() local
1455 retval = ext3_dx_add_entry(handle, dentry, inode); in ext3_add_entry()
1456 if (!retval || (retval != ERR_BAD_DX_DIR)) in ext3_add_entry()
1457 return retval; in ext3_add_entry()
1464 bh = ext3_bread(handle, dir, block, 0, &retval); in ext3_add_entry()
1466 return retval; in ext3_add_entry()
1467 retval = add_dirent_to_buf(handle, dentry, inode, NULL, bh); in ext3_add_entry()
1468 if (retval != -ENOSPC) in ext3_add_entry()
1469 return retval; in ext3_add_entry()
1476 bh = ext3_append(handle, dir, &block, &retval); in ext3_add_entry()
1478 return retval; in ext3_add_entry()
2044 int retval; in ext3_rmdir() local
2057 retval = -ENOENT; in ext3_rmdir()
2067 retval = -EIO; in ext3_rmdir()
2071 retval = -ENOTEMPTY; in ext3_rmdir()
2075 retval = ext3_delete_entry(handle, dir, de, bh); in ext3_rmdir()
2076 if (retval) in ext3_rmdir()
2098 return retval; in ext3_rmdir()
2103 int retval; in ext3_unlink() local
2119 retval = -ENOENT; in ext3_unlink()
2126 retval = -EIO; in ext3_unlink()
2136 retval = ext3_delete_entry(handle, dir, de, bh); in ext3_unlink()
2137 if (retval) in ext3_unlink()
2147 retval = 0; in ext3_unlink()
2152 return retval; in ext3_unlink()
2268 int retval; in ext3_rename() local
2293 retval = -ENOENT; in ext3_rename()
2307 retval = -ENOTEMPTY; in ext3_rename()
2311 retval = -EIO; in ext3_rename()
2312 dir_bh = ext3_bread (handle, old_inode, 0, 0, &retval); in ext3_rename()
2317 retval = -EMLINK; in ext3_rename()
2323 retval = ext3_add_entry (handle, new_dentry, old_inode); in ext3_rename()
2324 if (retval) in ext3_rename()
2355 (retval = ext3_delete_entry(handle, old_dir, in ext3_rename()
2367 retval = ext3_delete_entry(handle, old_dir, in ext3_rename()
2372 if (retval) { in ext3_rename()
2375 old_dir->i_ino, old_dir->i_nlink, retval); in ext3_rename()
2405 retval = 0; in ext3_rename()
2412 return retval; in ext3_rename()