Lines Matching refs:tail_blk
772 xfs_daddr_t tail_blk,
791 end_blk = head_blk > tail_blk ? tail_blk : 0;
810 if (tail_blk >= head_blk && found != count) {
811 for (i = log->l_logBBsize - 1; i >= (int) tail_blk; i--) {
846 xfs_daddr_t tail_blk,
865 end_blk = head_blk > tail_blk ? head_blk : log->l_logBBsize - 1;
866 for (i = (int) tail_blk; i <= end_blk; i++) {
883 if (tail_blk > head_blk && found != count) {
913 xfs_daddr_t tail_blk)
915 if (head_blk < tail_blk)
916 return tail_blk - head_blk;
918 return tail_blk + (log->l_logBBsize - head_blk);
944 xfs_daddr_t *tail_blk,
953 xfs_daddr_t orig_tail = *tail_blk;
963 error = xlog_seek_logrec_hdr(log, head_blk, *tail_blk, 1, buffer,
967 if (*tail_blk != tmp_tail)
968 *tail_blk = tmp_tail;
978 error = xlog_do_recovery_pass(log, head_blk, *tail_blk,
997 *tail_blk = tmp_tail;
999 error = xlog_do_recovery_pass(log, head_blk, *tail_blk,
1003 if (!error && *tail_blk != orig_tail)
1006 orig_tail, *tail_blk);
1029 xfs_daddr_t *tail_blk, /* out: tail block */
1052 error = xlog_rseek_logrec_hdr(log, *head_blk, *tail_blk,
1084 found = xlog_rseek_logrec_hdr(log, first_bad, *tail_blk, 1,
1101 *tail_blk = BLOCK_LSN(be64_to_cpu((*rhead)->h_tail_lsn));
1102 if (*head_blk == *tail_blk) {
1110 return xlog_verify_tail(log, *head_blk, tail_blk,
1142 xfs_daddr_t *tail_blk,
1188 *tail_blk = after_umount_blk;
1248 xfs_daddr_t *tail_blk)
1275 *tail_blk = 0;
1295 *tail_blk = BLOCK_LSN(be64_to_cpu(rhead->h_tail_lsn));
1307 error = xlog_check_unmount_rec(log, head_blk, tail_blk, rhead,
1325 error = xlog_verify_head(log, head_blk, tail_blk, buffer,
1335 error = xlog_check_unmount_rec(log, head_blk, tail_blk,
2931 xfs_daddr_t tail_blk,
2948 ASSERT(head_blk != tail_blk);
2949 blk_no = rhead_blk = tail_blk;
2968 error = xlog_bread(log, tail_blk, 1, hbp, &offset);
2995 error = xlog_valid_rec_header(log, rhead, tail_blk, h_size);
3028 if (tail_blk > head_blk) {
3231 xfs_daddr_t tail_blk)
3235 ASSERT(head_blk != tail_blk);
3247 error = xlog_do_recovery_pass(log, head_blk, tail_blk,
3258 error = xlog_do_recovery_pass(log, head_blk, tail_blk,
3282 xfs_daddr_t tail_blk)
3289 trace_xfs_log_recover(log, head_blk, tail_blk);
3294 error = xlog_do_log_recovery(log, head_blk, tail_blk);
3360 xfs_daddr_t head_blk, tail_blk;
3364 error = xlog_find_tail(log, &head_blk, &tail_blk);
3377 if (tail_blk != head_blk) {
3430 error = xlog_do_recover(log, head_blk, tail_blk);