Lines Matching refs:retval
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()
141 return retval; in search_by_entry_key()
165 retval = bin_search_in_dir_item(de, cpu_key_k_offset(key)); in search_by_entry_key()
167 if (retval != NAME_NOT_FOUND) { in search_by_entry_key()
175 return retval; in search_by_entry_key()
212 int retval = NAME_NOT_FOUND; in reiserfs_match() local
216 retval = in reiserfs_match()
220 return retval; in reiserfs_match()
232 int retval; in linear_search_in_dir_item() local
268 if ((retval = in linear_search_in_dir_item()
277 return retval; in linear_search_in_dir_item()
310 int retval; in reiserfs_find_entry() local
321 retval = in reiserfs_find_entry()
324 if (retval == IO_ERROR) { in reiserfs_find_entry()
330 retval = in reiserfs_find_entry()
337 if (retval != GOTO_PREVIOUS_ITEM) { in reiserfs_find_entry()
339 return retval; in reiserfs_find_entry()
356 int retval; in reiserfs_lookup() local
367 retval = in reiserfs_lookup()
371 if (retval == NAME_FOUND) { in reiserfs_lookup()
390 if (retval == IO_ERROR) { in reiserfs_lookup()
403 int retval; in reiserfs_get_parent() local
415 retval = reiserfs_find_entry(dir, "..", 2, &path_to_entry, &de); in reiserfs_get_parent()
417 if (retval != NAME_FOUND) { in reiserfs_get_parent()
452 int retval; in reiserfs_add_entry() local
511 retval = reiserfs_find_entry(dir, name, namelen, &path, &de); in reiserfs_add_entry()
512 if (retval != NAME_NOT_FOUND) { in reiserfs_add_entry()
517 if (retval == IO_ERROR) { in reiserfs_add_entry()
521 if (retval != NAME_FOUND) { in reiserfs_add_entry()
524 "unexpected value (%d)", retval); in reiserfs_add_entry()
566 retval = in reiserfs_add_entry()
571 if (retval) { in reiserfs_add_entry()
573 return retval; in reiserfs_add_entry()
626 int retval; in reiserfs_create() local
639 retval = dquot_initialize(dir); in reiserfs_create()
640 if (retval) in reiserfs_create()
641 return retval; in reiserfs_create()
646 retval = new_inode_init(inode, dir, mode); in reiserfs_create()
647 if (retval) { in reiserfs_create()
649 return retval; in reiserfs_create()
653 retval = reiserfs_security_init(dir, inode, &dentry->d_name, &security); in reiserfs_create()
654 if (retval < 0) { in reiserfs_create()
656 return retval; in reiserfs_create()
658 jbegin_count += retval; in reiserfs_create()
661 retval = journal_begin(&th, dir->i_sb, jbegin_count); in reiserfs_create()
662 if (retval) { in reiserfs_create()
667 retval = in reiserfs_create()
670 if (retval) in reiserfs_create()
677 retval = in reiserfs_create()
680 if (retval) { in reiserfs_create()
686 retval = err; in reiserfs_create()
695 retval = journal_end(&th); in reiserfs_create()
699 return retval; in reiserfs_create()
705 int retval; in reiserfs_mknod() local
718 retval = dquot_initialize(dir); in reiserfs_mknod()
719 if (retval) in reiserfs_mknod()
720 return retval; in reiserfs_mknod()
725 retval = new_inode_init(inode, dir, mode); in reiserfs_mknod()
726 if (retval) { in reiserfs_mknod()
728 return retval; in reiserfs_mknod()
732 retval = reiserfs_security_init(dir, inode, &dentry->d_name, &security); in reiserfs_mknod()
733 if (retval < 0) { in reiserfs_mknod()
735 return retval; in reiserfs_mknod()
737 jbegin_count += retval; in reiserfs_mknod()
740 retval = journal_begin(&th, dir->i_sb, jbegin_count); in reiserfs_mknod()
741 if (retval) { in reiserfs_mknod()
746 retval = in reiserfs_mknod()
749 if (retval) { in reiserfs_mknod()
762 retval = in reiserfs_mknod()
765 if (retval) { in reiserfs_mknod()
771 retval = err; in reiserfs_mknod()
778 retval = journal_end(&th); in reiserfs_mknod()
782 return retval; in reiserfs_mknod()
788 int retval; in reiserfs_mkdir() local
801 retval = dquot_initialize(dir); in reiserfs_mkdir()
802 if (retval) in reiserfs_mkdir()
803 return retval; in reiserfs_mkdir()
816 retval = new_inode_init(inode, dir, mode); in reiserfs_mkdir()
817 if (retval) { in reiserfs_mkdir()
819 return retval; in reiserfs_mkdir()
823 retval = reiserfs_security_init(dir, inode, &dentry->d_name, &security); in reiserfs_mkdir()
824 if (retval < 0) { in reiserfs_mkdir()
826 return retval; in reiserfs_mkdir()
828 jbegin_count += retval; in reiserfs_mkdir()
831 retval = journal_begin(&th, dir->i_sb, jbegin_count); in reiserfs_mkdir()
832 if (retval) { in reiserfs_mkdir()
843 retval = reiserfs_new_inode(&th, dir, mode, NULL /*symlink */, in reiserfs_mkdir()
847 if (retval) { in reiserfs_mkdir()
859 retval = in reiserfs_mkdir()
862 if (retval) { in reiserfs_mkdir()
869 retval = err; in reiserfs_mkdir()
878 retval = journal_end(&th); in reiserfs_mkdir()
881 return retval; in reiserfs_mkdir()
901 int retval, err; in reiserfs_rmdir() local
918 retval = dquot_initialize(dir); in reiserfs_rmdir()
919 if (retval) in reiserfs_rmdir()
920 return retval; in reiserfs_rmdir()
923 retval = journal_begin(&th, dir->i_sb, jbegin_count); in reiserfs_rmdir()
924 if (retval) in reiserfs_rmdir()
928 if ((retval = in reiserfs_rmdir()
931 retval = -ENOENT; in reiserfs_rmdir()
933 } else if (retval == IO_ERROR) { in reiserfs_rmdir()
934 retval = -EIO; in reiserfs_rmdir()
947 retval = -EIO; in reiserfs_rmdir()
951 retval = -ENOTEMPTY; in reiserfs_rmdir()
956 retval = reiserfs_cut_from_item(&th, &path, &de.de_entry_key, in reiserfs_rmdir()
959 if (retval < 0) in reiserfs_rmdir()
978 retval = journal_end(&th); in reiserfs_rmdir()
982 return retval; in reiserfs_rmdir()
993 return err ? err : retval; in reiserfs_rmdir()
998 int retval, err; in reiserfs_unlink() local
1006 retval = dquot_initialize(dir); in reiserfs_unlink()
1007 if (retval) in reiserfs_unlink()
1008 return retval; in reiserfs_unlink()
1024 retval = journal_begin(&th, dir->i_sb, jbegin_count); in reiserfs_unlink()
1025 if (retval) in reiserfs_unlink()
1029 if ((retval = in reiserfs_unlink()
1032 retval = -ENOENT; in reiserfs_unlink()
1034 } else if (retval == IO_ERROR) { in reiserfs_unlink()
1035 retval = -EIO; in reiserfs_unlink()
1046 retval = -EIO; in reiserfs_unlink()
1065 retval = in reiserfs_unlink()
1068 if (retval < 0) { in reiserfs_unlink()
1083 retval = journal_end(&th); in reiserfs_unlink()
1086 return retval; in reiserfs_unlink()
1093 retval = err; in reiserfs_unlink()
1096 return retval; in reiserfs_unlink()
1103 int retval; in reiserfs_symlink() local
1119 retval = dquot_initialize(parent_dir); in reiserfs_symlink()
1120 if (retval) in reiserfs_symlink()
1121 return retval; in reiserfs_symlink()
1126 retval = new_inode_init(inode, parent_dir, mode); in reiserfs_symlink()
1127 if (retval) { in reiserfs_symlink()
1129 return retval; in reiserfs_symlink()
1132 retval = reiserfs_security_init(parent_dir, inode, &dentry->d_name, in reiserfs_symlink()
1134 if (retval < 0) { in reiserfs_symlink()
1136 return retval; in reiserfs_symlink()
1138 jbegin_count += retval; in reiserfs_symlink()
1143 retval = -ENAMETOOLONG; in reiserfs_symlink()
1151 retval = -ENOMEM; in reiserfs_symlink()
1157 retval = journal_begin(&th, parent_dir->i_sb, jbegin_count); in reiserfs_symlink()
1158 if (retval) { in reiserfs_symlink()
1164 retval = in reiserfs_symlink()
1168 if (retval) { /* reiserfs_new_inode iputs for us */ in reiserfs_symlink()
1179 retval = reiserfs_add_entry(&th, parent_dir, dentry->d_name.name, in reiserfs_symlink()
1181 if (retval) { in reiserfs_symlink()
1187 retval = err; in reiserfs_symlink()
1194 retval = journal_end(&th); in reiserfs_symlink()
1197 return retval; in reiserfs_symlink()
1203 int retval; in reiserfs_link() local
1214 retval = dquot_initialize(dir); in reiserfs_link()
1215 if (retval) in reiserfs_link()
1216 return retval; in reiserfs_link()
1228 retval = journal_begin(&th, dir->i_sb, jbegin_count); in reiserfs_link()
1229 if (retval) { in reiserfs_link()
1232 return retval; in reiserfs_link()
1236 retval = in reiserfs_link()
1243 if (retval) { in reiserfs_link()
1248 return err ? err : retval; in reiserfs_link()
1256 retval = journal_end(&th); in reiserfs_link()
1258 return retval; in reiserfs_link()
1315 int retval; in reiserfs_rename() local
1345 retval = dquot_initialize(old_dir); in reiserfs_rename()
1346 if (retval) in reiserfs_rename()
1347 return retval; in reiserfs_rename()
1348 retval = dquot_initialize(new_dir); in reiserfs_rename()
1349 if (retval) in reiserfs_rename()
1350 return retval; in reiserfs_rename()
1361 retval = in reiserfs_rename()
1366 if (retval == IO_ERROR) { in reiserfs_rename()
1371 if (retval != NAME_FOUND || old_de.de_objectid != old_inode->i_ino) { in reiserfs_rename()
1395 retval = in reiserfs_rename()
1399 if (retval != NAME_FOUND) { in reiserfs_rename()
1411 retval = journal_begin(&th, old_dir->i_sb, jbegin_count); in reiserfs_rename()
1412 if (retval) { in reiserfs_rename()
1414 return retval; in reiserfs_rename()
1418 retval = in reiserfs_rename()
1421 if (retval == -EEXIST) { in reiserfs_rename()
1426 } else if (retval) { in reiserfs_rename()
1429 return err ? err : retval; in reiserfs_rename()
1449 if ((retval = in reiserfs_rename()
1465 retval = in reiserfs_rename()
1475 if (retval != NAME_FOUND_INVISIBLE && retval != NAME_FOUND) { in reiserfs_rename()
1488 if ((retval = in reiserfs_rename()
1643 retval = journal_end(&th); in reiserfs_rename()
1645 return retval; in reiserfs_rename()