Home
last modified time | relevance | path

Searched refs:tr (Results 1 – 8 of 8) sorted by relevance

/fs/gfs2/
Dtrans.c31 struct gfs2_trans *tr; in gfs2_trans_begin() local
40 tr = kzalloc(sizeof(struct gfs2_trans), GFP_NOFS); in gfs2_trans_begin()
41 if (!tr) in gfs2_trans_begin()
44 tr->tr_ip = _RET_IP_; in gfs2_trans_begin()
45 tr->tr_blocks = blocks; in gfs2_trans_begin()
46 tr->tr_revokes = revokes; in gfs2_trans_begin()
47 tr->tr_reserved = 1; in gfs2_trans_begin()
48 set_bit(TR_ALLOCED, &tr->tr_flags); in gfs2_trans_begin()
50 tr->tr_reserved += 6 + blocks; in gfs2_trans_begin()
52 tr->tr_reserved += gfs2_struct2blk(sdp, revokes, in gfs2_trans_begin()
[all …]
Dlog.c92 struct gfs2_trans *tr, in gfs2_ail1_start_one() argument
102 list_for_each_entry_safe_reverse(bd, s, &tr->tr_ail1_list, bd_ail_st_list) { in gfs2_ail1_start_one()
105 gfs2_assert(sdp, bd->bd_tr == tr); in gfs2_ail1_start_one()
114 list_move(&bd->bd_ail_st_list, &tr->tr_ail2_list); in gfs2_ail1_start_one()
123 list_move(&bd->bd_ail_st_list, &tr->tr_ail1_list); in gfs2_ail1_start_one()
151 struct gfs2_trans *tr; in gfs2_ail1_flush() local
159 list_for_each_entry_reverse(tr, head, tr_list) { in gfs2_ail1_flush()
162 if (gfs2_ail1_start_one(sdp, wbc, tr, &withdraw)) in gfs2_ail1_flush()
196 static void gfs2_ail1_empty_one(struct gfs2_sbd *sdp, struct gfs2_trans *tr, in gfs2_ail1_empty_one() argument
202 list_for_each_entry_safe_reverse(bd, s, &tr->tr_ail1_list, in gfs2_ail1_empty_one()
[all …]
Dlops.c99 struct gfs2_trans *tr) in gfs2_unpin() argument
122 bd->bd_tr = tr; in gfs2_unpin()
123 list_add(&bd->bd_ail_st_list, &tr->tr_ail1_list); in gfs2_unpin()
712 static void buf_lo_before_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr) in buf_lo_before_commit() argument
716 if (tr == NULL) in buf_lo_before_commit()
718 nbuf = tr->tr_num_buf_new - tr->tr_num_buf_rm; in buf_lo_before_commit()
719 gfs2_before_commit(sdp, limit, nbuf, &tr->tr_buf, 0); in buf_lo_before_commit()
722 static void buf_lo_after_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr) in buf_lo_after_commit() argument
727 if (tr == NULL) in buf_lo_after_commit()
730 head = &tr->tr_buf; in buf_lo_after_commit()
[all …]
Dglops.c85 struct gfs2_trans tr; in gfs2_ail_empty_gl() local
87 memset(&tr, 0, sizeof(tr)); in gfs2_ail_empty_gl()
88 INIT_LIST_HEAD(&tr.tr_buf); in gfs2_ail_empty_gl()
89 INIT_LIST_HEAD(&tr.tr_databuf); in gfs2_ail_empty_gl()
90 INIT_LIST_HEAD(&tr.tr_ail1_list); in gfs2_ail_empty_gl()
91 INIT_LIST_HEAD(&tr.tr_ail2_list); in gfs2_ail_empty_gl()
92 tr.tr_revokes = atomic_read(&gl->gl_ail_count); in gfs2_ail_empty_gl()
94 if (!tr.tr_revokes) { in gfs2_ail_empty_gl()
124 tr.tr_reserved = 1 + gfs2_struct2blk(sdp, tr.tr_revokes, sizeof(u64)); in gfs2_ail_empty_gl()
125 tr.tr_ip = _RET_IP_; in gfs2_ail_empty_gl()
[all …]
Dmeta_io.c291 struct gfs2_trans *tr = current->journal_info; in gfs2_meta_read() local
292 if (tr && test_bit(TR_TOUCHED, &tr->tr_flags)) in gfs2_meta_read()
318 struct gfs2_trans *tr = current->journal_info; in gfs2_meta_wait() local
319 if (tr && test_bit(TR_TOUCHED, &tr->tr_flags)) in gfs2_meta_wait()
334 struct gfs2_trans *tr = current->journal_info; in gfs2_remove_from_journal() local
342 tr->tr_num_buf_rm++; in gfs2_remove_from_journal()
344 tr->tr_num_databuf_rm++; in gfs2_remove_from_journal()
345 set_bit(TR_TOUCHED, &tr->tr_flags); in gfs2_remove_from_journal()
Dlops.h47 struct gfs2_trans *tr) in lops_before_commit() argument
52 gfs2_log_ops[x]->lo_before_commit(sdp, tr); in lops_before_commit()
56 struct gfs2_trans *tr) in lops_after_commit() argument
61 gfs2_log_ops[x]->lo_after_commit(sdp, tr); in lops_after_commit()
Dbmap.c1042 struct gfs2_trans *tr = current->journal_info; in gfs2_iomap_page_done() local
1049 if (tr->tr_num_buf_new) in gfs2_iomap_page_done()
1077 struct gfs2_trans *tr; in gfs2_iomap_begin_write() local
1125 tr = current->journal_info; in gfs2_iomap_begin_write()
1126 if (tr->tr_num_buf_new) in gfs2_iomap_begin_write()
1382 struct gfs2_trans *tr; in gfs2_journaled_truncate() local
1396 tr = current->journal_info; in gfs2_journaled_truncate()
1397 if (!test_bit(TR_TOUCHED, &tr->tr_flags)) in gfs2_journaled_truncate()
1503 struct gfs2_trans *tr; in sweep_bh_for_rgrps() local
1576 tr = current->journal_info; in sweep_bh_for_rgrps()
[all …]
Dincore.h52 void (*lo_before_commit) (struct gfs2_sbd *sdp, struct gfs2_trans *tr);
53 void (*lo_after_commit) (struct gfs2_sbd *sdp, struct gfs2_trans *tr);