Lines Matching refs:tail_blk
766 xfs_daddr_t tail_blk,
785 end_blk = head_blk > tail_blk ? tail_blk : 0;
804 if (tail_blk >= head_blk && found != count) {
805 for (i = log->l_logBBsize - 1; i >= (int) tail_blk; i--) {
840 xfs_daddr_t tail_blk,
859 end_blk = head_blk > tail_blk ? head_blk : log->l_logBBsize - 1;
860 for (i = (int) tail_blk; i <= end_blk; i++) {
877 if (tail_blk > head_blk && found != count) {
907 xfs_daddr_t tail_blk)
909 if (head_blk < tail_blk)
910 return tail_blk - head_blk;
912 return tail_blk + (log->l_logBBsize - head_blk);
938 xfs_daddr_t *tail_blk,
947 xfs_daddr_t orig_tail = *tail_blk;
957 error = xlog_seek_logrec_hdr(log, head_blk, *tail_blk, 1, buffer,
961 if (*tail_blk != tmp_tail)
962 *tail_blk = tmp_tail;
972 error = xlog_do_recovery_pass(log, head_blk, *tail_blk,
991 *tail_blk = tmp_tail;
993 error = xlog_do_recovery_pass(log, head_blk, *tail_blk,
997 if (!error && *tail_blk != orig_tail)
1000 orig_tail, *tail_blk);
1023 xfs_daddr_t *tail_blk, /* out: tail block */
1046 error = xlog_rseek_logrec_hdr(log, *head_blk, *tail_blk,
1078 found = xlog_rseek_logrec_hdr(log, first_bad, *tail_blk, 1,
1095 *tail_blk = BLOCK_LSN(be64_to_cpu((*rhead)->h_tail_lsn));
1096 if (*head_blk == *tail_blk) {
1104 return xlog_verify_tail(log, *head_blk, tail_blk,
1136 xfs_daddr_t *tail_blk,
1182 *tail_blk = after_umount_blk;
1242 xfs_daddr_t *tail_blk)
1269 *tail_blk = 0;
1289 *tail_blk = BLOCK_LSN(be64_to_cpu(rhead->h_tail_lsn));
1301 error = xlog_check_unmount_rec(log, head_blk, tail_blk, rhead,
1319 error = xlog_verify_head(log, head_blk, tail_blk, buffer,
1329 error = xlog_check_unmount_rec(log, head_blk, tail_blk,
2950 xfs_daddr_t tail_blk,
2967 ASSERT(head_blk != tail_blk);
2968 blk_no = rhead_blk = tail_blk;
2987 error = xlog_bread(log, tail_blk, 1, hbp, &offset);
3014 error = xlog_valid_rec_header(log, rhead, tail_blk, h_size);
3039 if (tail_blk > head_blk) {
3242 xfs_daddr_t tail_blk)
3246 ASSERT(head_blk != tail_blk);
3256 error = xlog_do_recovery_pass(log, head_blk, tail_blk,
3265 error = xlog_do_recovery_pass(log, head_blk, tail_blk,
3281 xfs_daddr_t tail_blk)
3288 trace_xfs_log_recover(log, head_blk, tail_blk);
3293 error = xlog_do_log_recovery(log, head_blk, tail_blk);
3356 xfs_daddr_t head_blk, tail_blk;
3360 error = xlog_find_tail(log, &head_blk, &tail_blk);
3373 if (tail_blk != head_blk) {
3426 error = xlog_do_recover(log, head_blk, tail_blk);