• Home
  • Raw
  • Download

Lines Matching refs:th

134 static int scan_bitmap_block(struct reiserfs_transaction_handle *th,  in scan_bitmap_block()  argument
138 struct super_block *s = th->t_super; in scan_bitmap_block()
144 BUG_ON(!th->t_trans_id); in scan_bitmap_block()
225 journal_mark_dirty(th, s, bh); in scan_bitmap_block()
232 journal_mark_dirty(th, s, SB_BUFFER_WITH_SB(s)); in scan_bitmap_block()
310 static int scan_bitmap(struct reiserfs_transaction_handle *th, in scan_bitmap() argument
315 struct super_block *s = th->t_super; in scan_bitmap()
323 BUG_ON(!th->t_trans_id); in scan_bitmap()
355 scan_bitmap_block(th, bm, &off, off_max, in scan_bitmap()
366 scan_bitmap_block(th, bm, &off, off_max, min, max, unfm); in scan_bitmap()
372 scan_bitmap_block(th, bm, &off, end_off + 1, min, max, unfm); in scan_bitmap()
380 static void _reiserfs_free_block(struct reiserfs_transaction_handle *th, in _reiserfs_free_block() argument
384 struct super_block *s = th->t_super; in _reiserfs_free_block()
390 BUG_ON(!th->t_trans_id); in _reiserfs_free_block()
418 journal_mark_dirty(th, s, bmbh); in _reiserfs_free_block()
425 journal_mark_dirty(th, s, sbh); in _reiserfs_free_block()
430 void reiserfs_free_block(struct reiserfs_transaction_handle *th, in reiserfs_free_block() argument
434 struct super_block *s = th->t_super; in reiserfs_free_block()
435 BUG_ON(!th->t_trans_id); in reiserfs_free_block()
442 reiserfs_error(th->t_super, "bitmap-4072", in reiserfs_free_block()
449 journal_mark_freed(th, s, block); in reiserfs_free_block()
450 _reiserfs_free_block(th, inode, block, for_unformatted); in reiserfs_free_block()
454 static void reiserfs_free_prealloc_block(struct reiserfs_transaction_handle *th, in reiserfs_free_prealloc_block() argument
457 BUG_ON(!th->t_trans_id); in reiserfs_free_prealloc_block()
458 RFALSE(!th->t_super, in reiserfs_free_prealloc_block()
460 if (!is_reusable(th->t_super, block, 1)) in reiserfs_free_prealloc_block()
462 _reiserfs_free_block(th, inode, block, 1); in reiserfs_free_prealloc_block()
465 static void __discard_prealloc(struct reiserfs_transaction_handle *th, in __discard_prealloc() argument
471 BUG_ON(!th->t_trans_id); in __discard_prealloc()
474 reiserfs_error(th->t_super, "zam-4001", in __discard_prealloc()
478 reiserfs_free_prealloc_block(th, inode, ei->i_prealloc_block); in __discard_prealloc()
484 reiserfs_update_sd(th, inode); in __discard_prealloc()
490 void reiserfs_discard_prealloc(struct reiserfs_transaction_handle *th, in reiserfs_discard_prealloc() argument
494 BUG_ON(!th->t_trans_id); in reiserfs_discard_prealloc()
496 __discard_prealloc(th, ei); in reiserfs_discard_prealloc()
499 void reiserfs_discard_all_prealloc(struct reiserfs_transaction_handle *th) in reiserfs_discard_all_prealloc() argument
501 struct list_head *plist = &SB_JOURNAL(th->t_super)->j_prealloc_list; in reiserfs_discard_all_prealloc()
503 BUG_ON(!th->t_trans_id); in reiserfs_discard_all_prealloc()
511 reiserfs_error(th->t_super, "zam-4001", in reiserfs_discard_all_prealloc()
516 __discard_prealloc(th, ei); in reiserfs_discard_all_prealloc()
736 if (TEST_OPTION(displace_based_on_dirid, hint->th->t_super)) in new_hashed_relocation()
756 struct super_block *sb = hint->th->t_super; in dirid_groups()
864 if (TEST_OPTION(displace_based_on_dirid, hint->th->t_super)) in displace_large_file()
882 else if (TEST_OPTION(displace_based_on_dirid, hint->th->t_super)) in hash_formatted_node()
896 REISERFS_SB(hint->th->t_super)->s_alloc_options.large_file_size; in this_blocknr_allocation_would_make_it_a_large_file()
904 hint->th->displace_new_blocks = 0; in displace_new_packing_locality()
964 struct super_block *s = hint->th->t_super; in determine_search_start()
979 && hint->th->displace_new_blocks) { in determine_search_start()
1071 REISERFS_SB(hint->th->t_super)->s_alloc_options. in determine_prealloc_size()
1074 REISERFS_SB(hint->th->t_super)->s_alloc_options. in determine_prealloc_size()
1093 nr_allocated = scan_bitmap(hint->th, &start, finish, min, in allocate_without_wrapping_disk()
1111 &SB_JOURNAL(hint->th->t_super)-> in allocate_without_wrapping_disk()
1126 struct super_block *s = hint->th->t_super; in blocknrs_and_prealloc_arrays_from_search_start()
1189 reiserfs_free_block(hint->th, hint->inode, in blocknrs_and_prealloc_arrays_from_search_start()
1257 struct super_block *s = hint->th->t_super; in reiserfs_allocate_blocknrs()
1293 reiserfs_free_block(hint->th, hint->inode, in reiserfs_allocate_blocknrs()