• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/reiserfs/

Lines Matching refs:th

501 // 'level'-th level
984 static char prepare_for_delete_or_cut(struct reiserfs_transaction_handle *th, struct inode *inode, struct treepath *path, const struct cpu_key *item_key, int *removed, /* Number of unformatted nodes which were removed
993 BUG_ON(!th->t_trans_id);
1047 reiserfs_transaction_free_space(th) < JOURNAL_FOR_FREE_BLOCK_AND_UPDATE_SD)
1056 journal_mark_dirty(th, sb, bh);
1057 reiserfs_free_block(th, inode, block, 1);
1118 static void init_tb_struct(struct reiserfs_transaction_handle *th,
1124 BUG_ON(!th->t_trans_id);
1127 tb->transaction_handle = th;
1172 * th - active transaction handle
1178 int reiserfs_delete_item(struct reiserfs_transaction_handle *th,
1194 BUG_ON(!th->t_trans_id);
1196 init_tb_struct(th, &s_del_balance, sb, path,
1206 prepare_for_delete_or_cut(th, inode, path,
1320 void reiserfs_delete_solid_item(struct reiserfs_transaction_handle *th,
1331 BUG_ON(!th->t_trans_id);
1336 retval = search_item(th->t_super, &cpu_key, &path);
1338 reiserfs_error(th->t_super, "vs-5350",
1354 reiserfs_warning(th->t_super, "vs-5355",
1361 init_tb_struct(th, &tb, th->t_super, &path,
1368 PROC_INFO_INC(th->t_super, delete_solid_item_restarted);
1376 reiserfs_debug(th->t_super, REISERFS_DEBUG_CODE,
1387 reiserfs_warning(th->t_super, "vs-5360",
1397 int reiserfs_delete_object(struct reiserfs_transaction_handle *th,
1402 BUG_ON(!th->t_trans_id);
1406 reiserfs_do_truncate(th, inode, NULL, 0 /*no timestamp updates */ );
1411 if (!old_format_only(th->t_super)) {
1415 &REISERFS_SB(th->t_super)->s_rs->s_inode_generation;
1420 reiserfs_delete_solid_item(th, inode, INODE_PKEY(inode));
1458 static int maybe_indirect_to_direct(struct reiserfs_transaction_handle *th,
1468 BUG_ON(!th->t_trans_id);
1488 return indirect2direct(th, inode, page, path, item_key,
1496 static void indirect_to_direct_roll_back(struct reiserfs_transaction_handle *th,
1502 BUG_ON(!th->t_trans_id);
1521 reiserfs_delete_item(th, path, &tail_key, inode,
1539 int reiserfs_cut_from_item(struct reiserfs_transaction_handle *th,
1560 BUG_ON(!th->t_trans_id);
1562 init_tb_struct(th, &s_cut_balance, inode->i_sb, path,
1574 prepare_for_delete_or_cut(th, inode, path,
1584 maybe_indirect_to_direct(th, inode, page,
1648 indirect_to_direct_roll_back(th, inode, path);
1733 static void truncate_directory(struct reiserfs_transaction_handle *th,
1736 BUG_ON(!th->t_trans_id);
1742 reiserfs_delete_solid_item(th, inode, INODE_PKEY(inode));
1743 reiserfs_update_sd(th, inode);
1750 int reiserfs_do_truncate(struct reiserfs_transaction_handle *th,
1768 BUG_ON(!th->t_trans_id);
1776 truncate_directory(th, inode);
1838 reiserfs_cut_from_item(th, &s_search_path, &s_item_key,
1865 if (journal_transaction_should_end(th, 0) ||
1866 reiserfs_transaction_free_space(th) <= JOURNAL_FOR_FREE_BLOCK_AND_UPDATE_SD) {
1867 int orig_len_alloc = th->t_blocks_allocated;
1874 reiserfs_update_sd(th, inode);
1876 err = journal_end(th, inode->i_sb, orig_len_alloc);
1879 err = journal_begin(th, inode->i_sb,
1899 reiserfs_update_sd(th, inode);
1942 int reiserfs_paste_into_item(struct reiserfs_transaction_handle *th, struct treepath *search_path, /* Path to the pasted item. */
1952 BUG_ON(!th->t_trans_id);
1968 init_tb_struct(th, &s_paste_balance, th->t_super, search_path,
1984 PROC_INFO_INC(th->t_super, paste_into_item_restarted);
1986 search_for_position_by_key(th->t_super, key,
2025 * th - active transaction handle
2030 int reiserfs_insert_item(struct reiserfs_transaction_handle *th,
2040 BUG_ON(!th->t_trans_id);
2064 init_tb_struct(th, &s_ins_balance, th->t_super, path,
2079 PROC_INFO_INC(th->t_super, insert_item_restarted);
2080 retval = search_item(th->t_super, key, path);
2086 reiserfs_warning(th->t_super, "PAP-5760",
2105 reiserfs_debug(th->t_super, REISERFS_DEBUG_CODE,