• Home
  • Raw
  • Download

Lines Matching refs:retval

117 	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()
219 int retval; in linear_search_in_dir_item() local
251 if ((retval = in linear_search_in_dir_item()
261 return retval; in linear_search_in_dir_item()
288 int retval; in reiserfs_find_entry() local
299 retval = in reiserfs_find_entry()
302 if (retval == IO_ERROR) { in reiserfs_find_entry()
309 retval = in reiserfs_find_entry()
312 if (retval != GOTO_PREVIOUS_ITEM) { in reiserfs_find_entry()
315 return retval; in reiserfs_find_entry()
329 int retval; in reiserfs_lookup() local
339 retval = in reiserfs_lookup()
343 if (retval == NAME_FOUND) { in reiserfs_lookup()
369 if (retval == IO_ERROR) { in reiserfs_lookup()
382 int retval; in reiserfs_get_parent() local
394 retval = reiserfs_find_entry(dir, "..", 2, &path_to_entry, &de); in reiserfs_get_parent()
396 if (retval != NAME_FOUND) { in reiserfs_get_parent()
426 int retval; in reiserfs_add_entry() local
476 retval = reiserfs_find_entry(dir, name, namelen, &path, &de); in reiserfs_add_entry()
477 if (retval != NAME_NOT_FOUND) { in reiserfs_add_entry()
482 if (retval == IO_ERROR) { in reiserfs_add_entry()
486 if (retval != NAME_FOUND) { in reiserfs_add_entry()
490 __func__, retval); in reiserfs_add_entry()
531 retval = in reiserfs_add_entry()
536 if (retval) { in reiserfs_add_entry()
538 return retval; in reiserfs_add_entry()
596 int retval; in reiserfs_create() local
618 retval = journal_begin(&th, dir->i_sb, jbegin_count); in reiserfs_create()
619 if (retval) { in reiserfs_create()
624 retval = in reiserfs_create()
627 if (retval) in reiserfs_create()
639 retval = in reiserfs_create()
642 if (retval) { in reiserfs_create()
648 retval = err; in reiserfs_create()
658 retval = journal_end(&th, dir->i_sb, jbegin_count); in reiserfs_create()
664 return retval; in reiserfs_create()
670 int retval; in reiserfs_mknod() local
695 retval = journal_begin(&th, dir->i_sb, jbegin_count); in reiserfs_mknod()
696 if (retval) { in reiserfs_mknod()
701 retval = in reiserfs_mknod()
704 if (retval) { in reiserfs_mknod()
722 retval = in reiserfs_mknod()
725 if (retval) { in reiserfs_mknod()
731 retval = err; in reiserfs_mknod()
739 retval = journal_end(&th, dir->i_sb, jbegin_count); in reiserfs_mknod()
745 return retval; in reiserfs_mknod()
750 int retval; in reiserfs_mkdir() local
776 retval = journal_begin(&th, dir->i_sb, jbegin_count); in reiserfs_mkdir()
777 if (retval) { in reiserfs_mkdir()
787 retval = reiserfs_new_inode(&th, dir, mode, NULL /*symlink */ , in reiserfs_mkdir()
791 if (retval) { in reiserfs_mkdir()
808 retval = in reiserfs_mkdir()
811 if (retval) { in reiserfs_mkdir()
818 retval = err; in reiserfs_mkdir()
828 retval = journal_end(&th, dir->i_sb, jbegin_count); in reiserfs_mkdir()
833 return retval; in reiserfs_mkdir()
852 int retval, err; in reiserfs_rmdir() local
868 retval = journal_begin(&th, dir->i_sb, jbegin_count); in reiserfs_rmdir()
869 if (retval) in reiserfs_rmdir()
873 if ((retval = in reiserfs_rmdir()
876 retval = -ENOENT; in reiserfs_rmdir()
878 } else if (retval == IO_ERROR) { in reiserfs_rmdir()
879 retval = -EIO; in reiserfs_rmdir()
891 retval = -EIO; in reiserfs_rmdir()
895 retval = -ENOTEMPTY; in reiserfs_rmdir()
900 retval = reiserfs_cut_from_item(&th, &path, &(de.de_entry_key), dir, NULL, /* page */ in reiserfs_rmdir()
902 if (retval < 0) in reiserfs_rmdir()
920 retval = journal_end(&th, dir->i_sb, jbegin_count); in reiserfs_rmdir()
924 return retval; in reiserfs_rmdir()
933 return err ? err : retval; in reiserfs_rmdir()
938 int retval, err; in reiserfs_unlink() local
957 retval = journal_begin(&th, dir->i_sb, jbegin_count); in reiserfs_unlink()
958 if (retval) in reiserfs_unlink()
962 if ((retval = in reiserfs_unlink()
965 retval = -ENOENT; in reiserfs_unlink()
967 } else if (retval == IO_ERROR) { in reiserfs_unlink()
968 retval = -EIO; in reiserfs_unlink()
978 retval = -EIO; in reiserfs_unlink()
998 retval = in reiserfs_unlink()
1001 if (retval < 0) { in reiserfs_unlink()
1016 retval = journal_end(&th, dir->i_sb, jbegin_count); in reiserfs_unlink()
1019 return retval; in reiserfs_unlink()
1026 retval = err; in reiserfs_unlink()
1029 return retval; in reiserfs_unlink()
1035 int retval; in reiserfs_symlink() local
1055 retval = -ENAMETOOLONG; in reiserfs_symlink()
1063 retval = -ENOMEM; in reiserfs_symlink()
1071 retval = journal_begin(&th, parent_dir->i_sb, jbegin_count); in reiserfs_symlink()
1072 if (retval) { in reiserfs_symlink()
1078 retval = in reiserfs_symlink()
1082 if (retval) { /* reiserfs_new_inode iputs for us */ in reiserfs_symlink()
1096 retval = reiserfs_add_entry(&th, parent_dir, dentry->d_name.name, in reiserfs_symlink()
1098 if (retval) { in reiserfs_symlink()
1104 retval = err; in reiserfs_symlink()
1112 retval = journal_end(&th, parent_dir->i_sb, jbegin_count); in reiserfs_symlink()
1115 return retval; in reiserfs_symlink()
1121 int retval; in reiserfs_link() local
1143 retval = journal_begin(&th, dir->i_sb, jbegin_count); in reiserfs_link()
1144 if (retval) { in reiserfs_link()
1147 return retval; in reiserfs_link()
1151 retval = in reiserfs_link()
1158 if (retval) { in reiserfs_link()
1163 return err ? err : retval; in reiserfs_link()
1171 retval = journal_end(&th, dir->i_sb, jbegin_count); in reiserfs_link()
1173 return retval; in reiserfs_link()
1229 int retval; in reiserfs_rename() local
1261 retval = in reiserfs_rename()
1266 if (retval == IO_ERROR) { in reiserfs_rename()
1271 if (retval != NAME_FOUND || old_de.de_objectid != old_inode->i_ino) { in reiserfs_rename()
1293 retval = in reiserfs_rename()
1297 if (retval != NAME_FOUND) { in reiserfs_rename()
1309 retval = journal_begin(&th, old_dir->i_sb, jbegin_count); in reiserfs_rename()
1310 if (retval) { in reiserfs_rename()
1312 return retval; in reiserfs_rename()
1316 retval = in reiserfs_rename()
1319 if (retval == -EEXIST) { in reiserfs_rename()
1324 } else if (retval) { in reiserfs_rename()
1327 return err ? err : retval; in reiserfs_rename()
1343 if ((retval = in reiserfs_rename()
1359 retval = in reiserfs_rename()
1365 if (retval != NAME_FOUND_INVISIBLE && retval != NAME_FOUND) { in reiserfs_rename()
1378 if ((retval = in reiserfs_rename()
1518 retval = journal_end(&th, old_dir->i_sb, jbegin_count); in reiserfs_rename()
1520 return retval; in reiserfs_rename()