Lines Matching refs:th
432 static int reiserfs_add_entry(struct reiserfs_transaction_handle *th, in reiserfs_add_entry() argument
453 BUG_ON(!th->t_trans_id); in reiserfs_add_entry()
547 PROC_INFO_MAX(th->t_super, max_hash_collisions, gen_number); in reiserfs_add_entry()
566 reiserfs_paste_into_item(th, &path, &entry_key, dir, buffer, in reiserfs_add_entry()
579 reiserfs_update_sd(th, dir); in reiserfs_add_entry()
635 struct reiserfs_transaction_handle th; in reiserfs_create() local
660 retval = journal_begin(&th, dir->i_sb, jbegin_count); in reiserfs_create()
667 reiserfs_new_inode(&th, dir, mode, NULL, 0 /*i_size */ , dentry, in reiserfs_create()
677 reiserfs_add_entry(&th, dir, dentry->d_name.name, in reiserfs_create()
682 reiserfs_update_sd(&th, inode); in reiserfs_create()
683 err = journal_end(&th); in reiserfs_create()
694 retval = journal_end(&th); in reiserfs_create()
707 struct reiserfs_transaction_handle th; in reiserfs_mknod() local
740 retval = journal_begin(&th, dir->i_sb, jbegin_count); in reiserfs_mknod()
747 reiserfs_new_inode(&th, dir, mode, NULL, 0 /*i_size */ , dentry, in reiserfs_mknod()
757 reiserfs_update_sd(&th, inode); in reiserfs_mknod()
763 reiserfs_add_entry(&th, dir, dentry->d_name.name, in reiserfs_mknod()
768 reiserfs_update_sd(&th, inode); in reiserfs_mknod()
769 err = journal_end(&th); in reiserfs_mknod()
778 retval = journal_end(&th); in reiserfs_mknod()
790 struct reiserfs_transaction_handle th; in reiserfs_mkdir() local
831 retval = journal_begin(&th, dir->i_sb, jbegin_count); in reiserfs_mkdir()
843 retval = reiserfs_new_inode(&th, dir, mode, NULL /*symlink */ , in reiserfs_mkdir()
860 reiserfs_add_entry(&th, dir, dentry->d_name.name, in reiserfs_mkdir()
866 reiserfs_update_sd(&th, inode); in reiserfs_mkdir()
867 err = journal_end(&th); in reiserfs_mkdir()
875 reiserfs_update_sd(&th, dir); in reiserfs_mkdir()
878 retval = journal_end(&th); in reiserfs_mkdir()
904 struct reiserfs_transaction_handle th; in reiserfs_rmdir() local
924 retval = journal_begin(&th, dir->i_sb, jbegin_count); in reiserfs_rmdir()
957 retval = reiserfs_cut_from_item(&th, &path, &de.de_entry_key, in reiserfs_rmdir()
970 reiserfs_update_sd(&th, inode); in reiserfs_rmdir()
974 reiserfs_update_sd(&th, dir); in reiserfs_rmdir()
977 add_save_link(&th, inode, 0 /* not truncate */ ); in reiserfs_rmdir()
979 retval = journal_end(&th); in reiserfs_rmdir()
992 err = journal_end(&th); in reiserfs_rmdir()
1003 struct reiserfs_transaction_handle th; in reiserfs_unlink() local
1025 retval = journal_begin(&th, dir->i_sb, jbegin_count); in reiserfs_unlink()
1067 reiserfs_cut_from_item(&th, &path, &de.de_entry_key, dir, NULL, in reiserfs_unlink()
1074 reiserfs_update_sd(&th, inode); in reiserfs_unlink()
1078 reiserfs_update_sd(&th, dir); in reiserfs_unlink()
1082 add_save_link(&th, inode, 0 /* not truncate */ ); in reiserfs_unlink()
1084 retval = journal_end(&th); in reiserfs_unlink()
1091 err = journal_end(&th); in reiserfs_unlink()
1107 struct reiserfs_transaction_handle th; in reiserfs_symlink() local
1157 retval = journal_begin(&th, parent_dir->i_sb, jbegin_count); in reiserfs_symlink()
1165 reiserfs_new_inode(&th, parent_dir, mode, name, strlen(symname), in reiserfs_symlink()
1179 retval = reiserfs_add_entry(&th, parent_dir, dentry->d_name.name, in reiserfs_symlink()
1184 reiserfs_update_sd(&th, inode); in reiserfs_symlink()
1185 err = journal_end(&th); in reiserfs_symlink()
1194 retval = journal_end(&th); in reiserfs_symlink()
1206 struct reiserfs_transaction_handle th; in reiserfs_link() local
1229 retval = journal_begin(&th, dir->i_sb, jbegin_count); in reiserfs_link()
1238 reiserfs_add_entry(&th, dir, dentry->d_name.name, in reiserfs_link()
1247 err = journal_end(&th); in reiserfs_link()
1253 reiserfs_update_sd(&th, inode); in reiserfs_link()
1257 retval = journal_end(&th); in reiserfs_link()
1322 struct reiserfs_transaction_handle th; in reiserfs_rename() local
1411 retval = journal_begin(&th, old_dir->i_sb, jbegin_count); in reiserfs_rename()
1419 reiserfs_add_entry(&th, new_dir, new_dentry->d_name.name, in reiserfs_rename()
1427 int err = journal_end(&th); in reiserfs_rename()
1454 journal_end(&th); in reiserfs_rename()
1478 journal_end(&th); in reiserfs_rename()
1496 journal_end(&th); in reiserfs_rename()
1573 journal_mark_dirty(&th, new_de.de_bh); in reiserfs_rename()
1576 journal_mark_dirty(&th, old_de.de_bh); in reiserfs_rename()
1600 journal_mark_dirty(&th, dot_dot_de.de_bh); in reiserfs_rename()
1625 (&th, &old_entry_path, &old_de.de_entry_key, old_dir, NULL, in reiserfs_rename()
1632 reiserfs_update_sd(&th, old_dir); in reiserfs_rename()
1633 reiserfs_update_sd(&th, new_dir); in reiserfs_rename()
1634 reiserfs_update_sd(&th, old_inode); in reiserfs_rename()
1638 add_save_link(&th, new_dentry_inode, in reiserfs_rename()
1640 reiserfs_update_sd(&th, new_dentry_inode); in reiserfs_rename()
1643 retval = journal_end(&th); in reiserfs_rename()