Lines Matching defs:log

27  * This structure is used during recovery to record the buf log items which
39 struct xlog *log,
46 if (!log->l_buf_cancel_table)
49 bucket = XLOG_BUF_CANCEL_BUCKET(log, blkno);
60 struct xlog *log,
70 * log, a reference count is kept to tell how many times we expect to
73 bcp = xlog_find_buffer_cancelled(log, blkno, len);
83 list_add_tail(&bcp->bc_list, XLOG_BUF_CANCEL_BUCKET(log, blkno));
92 struct xlog *log,
96 return xlog_find_buffer_cancelled(log, blkno, len) != NULL;
109 struct xlog *log,
115 bcp = xlog_find_buffer_cancelled(log, blkno, len);
128 /* log buffer item recovery */
131 * Sort buffer items for log recovery. Most buffer items should end up on the
134 * 1. XFS_BLF_CANCEL buffers must be processed last because some log items
159 struct xlog *log,
164 xlog_buf_readahead(log, buf_f->blf_blkno, buf_f->blf_len, NULL);
173 struct xlog *log,
179 xfs_err(log->l_mp, "bad buffer log item size (%d)",
185 trace_xfs_log_recover_buf_not_cancel(log, bf);
186 else if (xlog_add_buffer_cancelled(log, bf->blf_blkno, bf->blf_len))
187 trace_xfs_log_recover_buf_cancel_add(log, bf);
189 trace_xfs_log_recover_buf_cancel_ref_inc(log, bf);
397 * the buffer is more recent than the change in the log and will be
411 * the buffer. This can occur if log recovery is interrupted at some
415 * Write verifiers update the metadata LSN from log items attached to
432 * given buffer. The bitmap in the buf log format structure indicates
471 * the log. Hence we need to trim nbits back to the length of
472 * the current region being copied out of the log.
522 * Simple algorithm: if we have found a QUOTAOFF log item of the same type
532 struct xlog *log,
539 trace_xfs_log_recover_buf_dquot_buf(log, buf_f);
557 if (log->l_quotaoffs_flag & type)
656 "Bad inode buffer log record (ptr = "PTR_FMT", bp = "PTR_FMT"). "
850 * When meta-data buffers are freed at run time we log a buffer item
852 * of the buffer in the log should not be replayed at recovery time.
857 * To handle the cancellation of buffer log items, we make two passes
858 * over the log during recovery. During the first we build a table of
866 struct xlog *log,
872 struct xfs_mount *mp = log->l_mp;
883 if (xlog_put_buffer_cancelled(log, buf_f->blf_blkno,
888 if (xlog_is_buffer_cancelled(log, buf_f->blf_blkno,
893 trace_xfs_log_recover_buf_recover(log, buf_f);
925 trace_xfs_log_recover_buf_skip(log, buf_f);
929 * We're skipping replay of this buffer log item due to the log
948 dirty = xlog_recover_do_dquot_buffer(mp, log, item, bp, buf_f);
962 * buffers in the log can be a different size if the log was generated
972 (BBTOB(bp->b_length) != M_IGEO(log->l_mp)->inode_cluster_size)) {
985 trace_xfs_log_recover_buf_cancel(log, buf_f);