Lines Matching refs:tail_blk

766 	xfs_daddr_t		tail_blk,  in xlog_rseek_logrec_hdr()  argument
785 end_blk = head_blk > tail_blk ? tail_blk : 0; in xlog_rseek_logrec_hdr()
804 if (tail_blk >= head_blk && found != count) { in xlog_rseek_logrec_hdr()
805 for (i = log->l_logBBsize - 1; i >= (int) tail_blk; i--) { in xlog_rseek_logrec_hdr()
840 xfs_daddr_t tail_blk, in xlog_seek_logrec_hdr() argument
859 end_blk = head_blk > tail_blk ? head_blk : log->l_logBBsize - 1; in xlog_seek_logrec_hdr()
860 for (i = (int) tail_blk; i <= end_blk; i++) { in xlog_seek_logrec_hdr()
877 if (tail_blk > head_blk && found != count) { in xlog_seek_logrec_hdr()
907 xfs_daddr_t tail_blk) in xlog_tail_distance() argument
909 if (head_blk < tail_blk) in xlog_tail_distance()
910 return tail_blk - head_blk; in xlog_tail_distance()
912 return tail_blk + (log->l_logBBsize - head_blk); in xlog_tail_distance()
938 xfs_daddr_t *tail_blk, in xlog_verify_tail() argument
947 xfs_daddr_t orig_tail = *tail_blk; in xlog_verify_tail()
957 error = xlog_seek_logrec_hdr(log, head_blk, *tail_blk, 1, buffer, in xlog_verify_tail()
961 if (*tail_blk != tmp_tail) in xlog_verify_tail()
962 *tail_blk = tmp_tail; in xlog_verify_tail()
972 error = xlog_do_recovery_pass(log, head_blk, *tail_blk, in xlog_verify_tail()
991 *tail_blk = tmp_tail; in xlog_verify_tail()
993 error = xlog_do_recovery_pass(log, head_blk, *tail_blk, in xlog_verify_tail()
997 if (!error && *tail_blk != orig_tail) in xlog_verify_tail()
1000 orig_tail, *tail_blk); in xlog_verify_tail()
1023 xfs_daddr_t *tail_blk, /* out: tail block */ in xlog_verify_head() argument
1046 error = xlog_rseek_logrec_hdr(log, *head_blk, *tail_blk, in xlog_verify_head()
1078 found = xlog_rseek_logrec_hdr(log, first_bad, *tail_blk, 1, in xlog_verify_head()
1095 *tail_blk = BLOCK_LSN(be64_to_cpu((*rhead)->h_tail_lsn)); in xlog_verify_head()
1096 if (*head_blk == *tail_blk) { in xlog_verify_head()
1104 return xlog_verify_tail(log, *head_blk, tail_blk, in xlog_verify_head()
1136 xfs_daddr_t *tail_blk, in xlog_check_unmount_rec() argument
1182 *tail_blk = after_umount_blk; in xlog_check_unmount_rec()
1238 xfs_daddr_t *tail_blk) in xlog_find_tail() argument
1265 *tail_blk = 0; in xlog_find_tail()
1285 *tail_blk = BLOCK_LSN(be64_to_cpu(rhead->h_tail_lsn)); in xlog_find_tail()
1297 error = xlog_check_unmount_rec(log, head_blk, tail_blk, rhead, in xlog_find_tail()
1315 error = xlog_verify_head(log, head_blk, tail_blk, buffer, in xlog_find_tail()
1325 error = xlog_check_unmount_rec(log, head_blk, tail_blk, in xlog_find_tail()
2989 xfs_daddr_t tail_blk, in xlog_do_recovery_pass() argument
3006 ASSERT(head_blk != tail_blk); in xlog_do_recovery_pass()
3007 blk_no = rhead_blk = tail_blk; in xlog_do_recovery_pass()
3026 error = xlog_bread(log, tail_blk, 1, hbp, &offset); in xlog_do_recovery_pass()
3053 error = xlog_valid_rec_header(log, rhead, tail_blk, h_size); in xlog_do_recovery_pass()
3085 if (tail_blk > head_blk) { in xlog_do_recovery_pass()
3305 xfs_daddr_t tail_blk) in xlog_do_log_recovery() argument
3309 ASSERT(head_blk != tail_blk); in xlog_do_log_recovery()
3319 error = xlog_do_recovery_pass(log, head_blk, tail_blk, in xlog_do_log_recovery()
3328 error = xlog_do_recovery_pass(log, head_blk, tail_blk, in xlog_do_log_recovery()
3344 xfs_daddr_t tail_blk) in xlog_do_recover() argument
3351 trace_xfs_log_recover(log, head_blk, tail_blk); in xlog_do_recover()
3356 error = xlog_do_log_recovery(log, head_blk, tail_blk); in xlog_do_recover()
3411 xfs_daddr_t head_blk, tail_blk; in xlog_recover() local
3415 error = xlog_find_tail(log, &head_blk, &tail_blk); in xlog_recover()
3428 if (tail_blk != head_blk) { in xlog_recover()
3481 error = xlog_do_recover(log, head_blk, tail_blk); in xlog_recover()