Lines Matching refs:log

32 #define XLOG_BUF_CANCEL_BUCKET(log, blkno) \  argument
33 ((log)->l_buf_cancel_table + ((uint64_t)blkno % XLOG_BC_TABLE_SIZE))
48 struct xlog *log, in xlog_find_buffer_cancelled() argument
55 if (!log->l_buf_cancel_table) in xlog_find_buffer_cancelled()
58 bucket = XLOG_BUF_CANCEL_BUCKET(log, blkno); in xlog_find_buffer_cancelled()
69 struct xlog *log, in xlog_add_buffer_cancelled() argument
82 bcp = xlog_find_buffer_cancelled(log, blkno, len); in xlog_add_buffer_cancelled()
92 list_add_tail(&bcp->bc_list, XLOG_BUF_CANCEL_BUCKET(log, blkno)); in xlog_add_buffer_cancelled()
101 struct xlog *log, in xlog_is_buffer_cancelled() argument
105 return xlog_find_buffer_cancelled(log, blkno, len) != NULL; in xlog_is_buffer_cancelled()
118 struct xlog *log, in xlog_put_buffer_cancelled() argument
124 bcp = xlog_find_buffer_cancelled(log, blkno, len); in xlog_put_buffer_cancelled()
168 struct xlog *log, in xlog_recover_buf_ra_pass2() argument
173 xlog_buf_readahead(log, buf_f->blf_blkno, buf_f->blf_len, NULL); in xlog_recover_buf_ra_pass2()
182 struct xlog *log, in xlog_recover_buf_commit_pass1() argument
188 xfs_err(log->l_mp, "bad buffer log item size (%d)", in xlog_recover_buf_commit_pass1()
194 trace_xfs_log_recover_buf_not_cancel(log, bf); in xlog_recover_buf_commit_pass1()
195 else if (xlog_add_buffer_cancelled(log, bf->blf_blkno, bf->blf_len)) in xlog_recover_buf_commit_pass1()
196 trace_xfs_log_recover_buf_cancel_add(log, bf); in xlog_recover_buf_commit_pass1()
198 trace_xfs_log_recover_buf_cancel_ref_inc(log, bf); in xlog_recover_buf_commit_pass1()
541 struct xlog *log, in xlog_recover_do_dquot_buffer() argument
548 trace_xfs_log_recover_buf_dquot_buf(log, buf_f); in xlog_recover_do_dquot_buffer()
566 if (log->l_quotaoffs_flag & type) in xlog_recover_do_dquot_buffer()
885 struct xlog *log, in xlog_recover_buf_commit_pass2() argument
891 struct xfs_mount *mp = log->l_mp; in xlog_recover_buf_commit_pass2()
902 if (xlog_put_buffer_cancelled(log, buf_f->blf_blkno, in xlog_recover_buf_commit_pass2()
907 if (xlog_is_buffer_cancelled(log, buf_f->blf_blkno, in xlog_recover_buf_commit_pass2()
912 trace_xfs_log_recover_buf_recover(log, buf_f); in xlog_recover_buf_commit_pass2()
944 trace_xfs_log_recover_buf_skip(log, buf_f); in xlog_recover_buf_commit_pass2()
957 dirty = xlog_recover_do_dquot_buffer(mp, log, item, bp, buf_f); in xlog_recover_buf_commit_pass2()
981 (BBTOB(bp->b_length) != M_IGEO(log->l_mp)->inode_cluster_size)) { in xlog_recover_buf_commit_pass2()
994 trace_xfs_log_recover_buf_cancel(log, buf_f); in xlog_recover_buf_commit_pass2()
1009 struct xlog *log) in xlog_check_buf_cancel_table() argument
1014 ASSERT(list_empty(&log->l_buf_cancel_table[i])); in xlog_check_buf_cancel_table()
1020 struct xlog *log) in xlog_alloc_buf_cancel_table() argument
1025 ASSERT(log->l_buf_cancel_table == NULL); in xlog_alloc_buf_cancel_table()
1032 log->l_buf_cancel_table = p; in xlog_alloc_buf_cancel_table()
1034 INIT_LIST_HEAD(&log->l_buf_cancel_table[i]); in xlog_alloc_buf_cancel_table()
1041 struct xlog *log) in xlog_free_buf_cancel_table() argument
1045 if (!log->l_buf_cancel_table) in xlog_free_buf_cancel_table()
1052 &log->l_buf_cancel_table[i], in xlog_free_buf_cancel_table()
1059 kmem_free(log->l_buf_cancel_table); in xlog_free_buf_cancel_table()
1060 log->l_buf_cancel_table = NULL; in xlog_free_buf_cancel_table()