Lines Matching refs:th
433 static int reiserfs_add_entry(struct reiserfs_transaction_handle *th, in reiserfs_add_entry() argument
454 BUG_ON(!th->t_trans_id); in reiserfs_add_entry()
548 PROC_INFO_MAX(th->t_super, max_hash_collisions, gen_number); in reiserfs_add_entry()
567 reiserfs_paste_into_item(th, &path, &entry_key, dir, buffer, in reiserfs_add_entry()
580 reiserfs_update_sd(th, dir); in reiserfs_add_entry()
636 struct reiserfs_transaction_handle th; in reiserfs_create() local
661 retval = journal_begin(&th, dir->i_sb, jbegin_count); in reiserfs_create()
668 reiserfs_new_inode(&th, dir, mode, NULL, 0 /*i_size */ , dentry, in reiserfs_create()
678 reiserfs_add_entry(&th, dir, dentry->d_name.name, in reiserfs_create()
683 reiserfs_update_sd(&th, inode); in reiserfs_create()
684 err = journal_end(&th); in reiserfs_create()
695 retval = journal_end(&th); in reiserfs_create()
708 struct reiserfs_transaction_handle th; in reiserfs_mknod() local
741 retval = journal_begin(&th, dir->i_sb, jbegin_count); in reiserfs_mknod()
748 reiserfs_new_inode(&th, dir, mode, NULL, 0 /*i_size */ , dentry, in reiserfs_mknod()
758 reiserfs_update_sd(&th, inode); in reiserfs_mknod()
764 reiserfs_add_entry(&th, dir, dentry->d_name.name, in reiserfs_mknod()
769 reiserfs_update_sd(&th, inode); in reiserfs_mknod()
770 err = journal_end(&th); in reiserfs_mknod()
779 retval = journal_end(&th); in reiserfs_mknod()
792 struct reiserfs_transaction_handle th; in reiserfs_mkdir() local
833 retval = journal_begin(&th, dir->i_sb, jbegin_count); in reiserfs_mkdir()
845 retval = reiserfs_new_inode(&th, dir, mode, NULL /*symlink */, in reiserfs_mkdir()
862 reiserfs_add_entry(&th, dir, dentry->d_name.name, in reiserfs_mkdir()
868 reiserfs_update_sd(&th, inode); in reiserfs_mkdir()
869 err = journal_end(&th); in reiserfs_mkdir()
877 reiserfs_update_sd(&th, dir); in reiserfs_mkdir()
880 retval = journal_end(&th); in reiserfs_mkdir()
906 struct reiserfs_transaction_handle th; in reiserfs_rmdir() local
926 retval = journal_begin(&th, dir->i_sb, jbegin_count); in reiserfs_rmdir()
959 retval = reiserfs_cut_from_item(&th, &path, &de.de_entry_key, in reiserfs_rmdir()
972 reiserfs_update_sd(&th, inode); in reiserfs_rmdir()
976 reiserfs_update_sd(&th, dir); in reiserfs_rmdir()
979 add_save_link(&th, inode, 0 /* not truncate */ ); in reiserfs_rmdir()
981 retval = journal_end(&th); in reiserfs_rmdir()
994 err = journal_end(&th); in reiserfs_rmdir()
1005 struct reiserfs_transaction_handle th; in reiserfs_unlink() local
1027 retval = journal_begin(&th, dir->i_sb, jbegin_count); in reiserfs_unlink()
1069 reiserfs_cut_from_item(&th, &path, &de.de_entry_key, dir, NULL, in reiserfs_unlink()
1076 reiserfs_update_sd(&th, inode); in reiserfs_unlink()
1080 reiserfs_update_sd(&th, dir); in reiserfs_unlink()
1084 add_save_link(&th, inode, 0 /* not truncate */ ); in reiserfs_unlink()
1086 retval = journal_end(&th); in reiserfs_unlink()
1093 err = journal_end(&th); in reiserfs_unlink()
1110 struct reiserfs_transaction_handle th; in reiserfs_symlink() local
1160 retval = journal_begin(&th, parent_dir->i_sb, jbegin_count); in reiserfs_symlink()
1168 reiserfs_new_inode(&th, parent_dir, mode, name, strlen(symname), in reiserfs_symlink()
1182 retval = reiserfs_add_entry(&th, parent_dir, dentry->d_name.name, in reiserfs_symlink()
1187 reiserfs_update_sd(&th, inode); in reiserfs_symlink()
1188 err = journal_end(&th); in reiserfs_symlink()
1197 retval = journal_end(&th); in reiserfs_symlink()
1209 struct reiserfs_transaction_handle th; in reiserfs_link() local
1232 retval = journal_begin(&th, dir->i_sb, jbegin_count); in reiserfs_link()
1241 reiserfs_add_entry(&th, dir, dentry->d_name.name, in reiserfs_link()
1250 err = journal_end(&th); in reiserfs_link()
1256 reiserfs_update_sd(&th, inode); in reiserfs_link()
1260 retval = journal_end(&th); in reiserfs_link()
1326 struct reiserfs_transaction_handle th; in reiserfs_rename() local
1415 retval = journal_begin(&th, old_dir->i_sb, jbegin_count); in reiserfs_rename()
1423 reiserfs_add_entry(&th, new_dir, new_dentry->d_name.name, in reiserfs_rename()
1431 int err = journal_end(&th); in reiserfs_rename()
1458 journal_end(&th); in reiserfs_rename()
1482 journal_end(&th); in reiserfs_rename()
1500 journal_end(&th); in reiserfs_rename()
1577 journal_mark_dirty(&th, new_de.de_bh); in reiserfs_rename()
1580 journal_mark_dirty(&th, old_de.de_bh); in reiserfs_rename()
1604 journal_mark_dirty(&th, dot_dot_de.de_bh); in reiserfs_rename()
1629 (&th, &old_entry_path, &old_de.de_entry_key, old_dir, NULL, in reiserfs_rename()
1636 reiserfs_update_sd(&th, old_dir); in reiserfs_rename()
1637 reiserfs_update_sd(&th, new_dir); in reiserfs_rename()
1638 reiserfs_update_sd(&th, old_inode); in reiserfs_rename()
1642 add_save_link(&th, new_dentry_inode, in reiserfs_rename()
1644 reiserfs_update_sd(&th, new_dentry_inode); in reiserfs_rename()
1647 retval = journal_end(&th); in reiserfs_rename()