Lines Matching refs:rhead
770 struct xlog_rec_header **rhead, in xlog_rseek_logrec_hdr() argument
793 *rhead = (struct xlog_rec_header *) offset; in xlog_rseek_logrec_hdr()
814 *rhead = (struct xlog_rec_header *) offset; in xlog_rseek_logrec_hdr()
844 struct xlog_rec_header **rhead, in xlog_seek_logrec_hdr() argument
867 *rhead = (struct xlog_rec_header *) offset; in xlog_seek_logrec_hdr()
887 *rhead = (struct xlog_rec_header *) offset; in xlog_seek_logrec_hdr()
1026 struct xlog_rec_header **rhead, /* ptr to last record */ in xlog_verify_head() argument
1079 buffer, rhead_blk, rhead, wrapped); in xlog_verify_head()
1095 *tail_blk = BLOCK_LSN(be64_to_cpu((*rhead)->h_tail_lsn)); in xlog_verify_head()
1105 be32_to_cpu((*rhead)->h_size)); in xlog_verify_head()
1137 struct xlog_rec_header *rhead, in xlog_check_unmount_rec() argument
1160 hblks = xlog_logrec_hblks(log, rhead); in xlog_check_unmount_rec()
1162 rhead_blk + hblks + BTOBB(be32_to_cpu(rhead->h_len))); in xlog_check_unmount_rec()
1165 be32_to_cpu(rhead->h_num_logops) == 1) { in xlog_check_unmount_rec()
1195 struct xlog_rec_header *rhead, in xlog_set_state() argument
1211 log->l_curr_cycle = be32_to_cpu(rhead->h_cycle); in xlog_set_state()
1214 atomic64_set(&log->l_tail_lsn, be64_to_cpu(rhead->h_tail_lsn)); in xlog_set_state()
1215 log->l_ailp->ail_head_lsn = be64_to_cpu(rhead->h_lsn); in xlog_set_state()
1240 xlog_rec_header_t *rhead; in xlog_find_tail() local
1277 &rhead_blk, &rhead, &wrapped); in xlog_find_tail()
1285 *tail_blk = BLOCK_LSN(be64_to_cpu(rhead->h_tail_lsn)); in xlog_find_tail()
1290 xlog_set_state(log, *head_blk, rhead, rhead_blk, wrapped); in xlog_find_tail()
1297 error = xlog_check_unmount_rec(log, head_blk, tail_blk, rhead, in xlog_find_tail()
1316 &rhead_blk, &rhead, &wrapped); in xlog_find_tail()
1322 xlog_set_state(log, *head_blk, rhead, rhead_blk, in xlog_find_tail()
1326 rhead, rhead_blk, buffer, in xlog_find_tail()
2343 struct xlog_rec_header *rhead, in xlog_recover_ophdr_to_trans() argument
2372 trans->r_lsn = be64_to_cpu(rhead->h_lsn); in xlog_recover_ophdr_to_trans()
2388 struct xlog_rec_header *rhead, in xlog_recover_process_ophdr() argument
2418 trans = xlog_recover_ophdr_to_trans(rhash, rhead, ohead); in xlog_recover_process_ophdr()
2472 struct xlog_rec_header *rhead, in xlog_recover_process_data() argument
2482 end = dp + be32_to_cpu(rhead->h_len); in xlog_recover_process_data()
2483 num_logops = be32_to_cpu(rhead->h_num_logops); in xlog_recover_process_data()
2486 if (xlog_header_check_recover(log->l_mp, rhead)) in xlog_recover_process_data()
2489 trace_xfs_log_recover_record(log, rhead, pass); in xlog_recover_process_data()
2500 error = xlog_recover_process_ophdr(log, rhash, rhead, ohead, in xlog_recover_process_data()
2862 struct xlog_rec_header *rhead, in xlog_unpack_data() argument
2868 for (i = 0; i < BTOBB(be32_to_cpu(rhead->h_len)) && in xlog_unpack_data()
2870 *(__be32 *)dp = *(__be32 *)&rhead->h_cycle_data[i]; in xlog_unpack_data()
2875 xlog_in_core_2_t *xhdr = (xlog_in_core_2_t *)rhead; in xlog_unpack_data()
2876 for ( ; i < BTOBB(be32_to_cpu(rhead->h_len)); i++) { in xlog_unpack_data()
2892 struct xlog_rec_header *rhead, in xlog_recover_process() argument
2897 __le32 old_crc = rhead->h_crc; in xlog_recover_process()
2900 crc = xlog_cksum(log, rhead, dp, be32_to_cpu(rhead->h_len)); in xlog_recover_process()
2940 xlog_unpack_data(rhead, dp, log); in xlog_recover_process()
2942 return xlog_recover_process_data(log, rhash, rhead, dp, pass, in xlog_recover_process()
2949 struct xlog_rec_header *rhead, in xlog_valid_rec_header() argument
2956 rhead->h_magicno != cpu_to_be32(XLOG_HEADER_MAGIC_NUM))) in xlog_valid_rec_header()
2959 (!rhead->h_version || in xlog_valid_rec_header()
2960 (be32_to_cpu(rhead->h_version) & in xlog_valid_rec_header()
2963 __func__, be32_to_cpu(rhead->h_version)); in xlog_valid_rec_header()
2971 hlen = be32_to_cpu(rhead->h_len); in xlog_valid_rec_header()
2997 xlog_rec_header_t *rhead; in xlog_do_recovery_pass() local
3034 rhead = (xlog_rec_header_t *)offset; in xlog_do_recovery_pass()
3047 h_size = be32_to_cpu(rhead->h_size); in xlog_do_recovery_pass()
3048 h_len = be32_to_cpu(rhead->h_len); in xlog_do_recovery_pass()
3050 rhead->h_num_logops == cpu_to_be32(1)) { in xlog_do_recovery_pass()
3057 error = xlog_valid_rec_header(log, rhead, tail_blk, h_size); in xlog_do_recovery_pass()
3068 (rhead->h_version & cpu_to_be32(XLOG_VERSION_2))) { in xlog_do_recovery_pass()
3141 rhead = (xlog_rec_header_t *)offset; in xlog_do_recovery_pass()
3142 error = xlog_valid_rec_header(log, rhead, in xlog_do_recovery_pass()
3147 bblks = (int)BTOBB(be32_to_cpu(rhead->h_len)); in xlog_do_recovery_pass()
3203 error = xlog_recover_process(log, rhash, rhead, offset, in xlog_do_recovery_pass()
3223 rhead = (xlog_rec_header_t *)offset; in xlog_do_recovery_pass()
3224 error = xlog_valid_rec_header(log, rhead, blk_no, h_size); in xlog_do_recovery_pass()
3229 bblks = (int)BTOBB(be32_to_cpu(rhead->h_len)); in xlog_do_recovery_pass()
3235 error = xlog_recover_process(log, rhash, rhead, offset, pass, in xlog_do_recovery_pass()