• 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 defs:th

135 static int scan_bitmap_block(struct reiserfs_transaction_handle *th,
139 struct super_block *s = th->t_super;
145 BUG_ON(!th->t_trans_id);
226 journal_mark_dirty(th, s, bh);
233 journal_mark_dirty(th, s, SB_BUFFER_WITH_SB(s));
311 static int scan_bitmap(struct reiserfs_transaction_handle *th,
316 struct super_block *s = th->t_super;
324 BUG_ON(!th->t_trans_id);
356 scan_bitmap_block(th, bm, &off, off_max,
367 scan_bitmap_block(th, bm, &off, off_max, min, max, unfm);
373 scan_bitmap_block(th, bm, &off, end_off + 1, min, max, unfm);
381 static void _reiserfs_free_block(struct reiserfs_transaction_handle *th,
385 struct super_block *s = th->t_super;
391 BUG_ON(!th->t_trans_id);
419 journal_mark_dirty(th, s, bmbh);
426 journal_mark_dirty(th, s, sbh);
431 void reiserfs_free_block(struct reiserfs_transaction_handle *th,
435 struct super_block *s = th->t_super;
436 BUG_ON(!th->t_trans_id);
443 reiserfs_error(th->t_super, "bitmap-4072",
450 journal_mark_freed(th, s, block);
451 _reiserfs_free_block(th, inode, block, for_unformatted);
455 static void reiserfs_free_prealloc_block(struct reiserfs_transaction_handle *th,
458 BUG_ON(!th->t_trans_id);
459 RFALSE(!th->t_super,
461 if (!is_reusable(th->t_super, block, 1))
463 _reiserfs_free_block(th, inode, block, 1);
466 static void __discard_prealloc(struct reiserfs_transaction_handle *th,
472 BUG_ON(!th->t_trans_id);
475 reiserfs_error(th->t_super, "zam-4001",
479 reiserfs_free_prealloc_block(th, inode, ei->i_prealloc_block);
485 reiserfs_update_sd(th, inode);
490 void reiserfs_discard_prealloc(struct reiserfs_transaction_handle *th,
494 BUG_ON(!th->t_trans_id);
496 __discard_prealloc(th, ei);
499 void reiserfs_discard_all_prealloc(struct reiserfs_transaction_handle *th)
501 struct list_head *plist = &SB_JOURNAL(th->t_super)->j_prealloc_list;
503 BUG_ON(!th->t_trans_id);
511 reiserfs_error(th->t_super, "zam-4001",
516 __discard_prealloc(th, ei);
646 if (TEST_OPTION(displace_based_on_dirid, hint->th->t_super))
666 struct super_block *sb = hint->th->t_super;
774 if (TEST_OPTION(displace_based_on_dirid, hint->th->t_super))
792 else if (TEST_OPTION(displace_based_on_dirid, hint->th->t_super))
806 REISERFS_SB(hint->th->t_super)->s_alloc_options.large_file_size;
814 hint->th->displace_new_blocks = 0;
874 struct super_block *s = hint->th->t_super;
889 && hint->th->displace_new_blocks) {
981 REISERFS_SB(hint->th->t_super)->s_alloc_options.
984 REISERFS_SB(hint->th->t_super)->s_alloc_options.
1001 nr_allocated = scan_bitmap(hint->th, &start, finish, min,
1019 &SB_JOURNAL(hint->th->t_super)->
1034 struct super_block *s = hint->th->t_super;
1097 reiserfs_free_block(hint->th, hint->inode,
1165 struct super_block *s = hint->th->t_super;
1201 reiserfs_free_block(hint->th, hint->inode,