Lines Matching refs:rhead

776 	struct xlog_rec_header	**rhead,  in xlog_rseek_logrec_hdr()  argument
799 *rhead = (struct xlog_rec_header *) offset; in xlog_rseek_logrec_hdr()
820 *rhead = (struct xlog_rec_header *) offset; in xlog_rseek_logrec_hdr()
850 struct xlog_rec_header **rhead, in xlog_seek_logrec_hdr() argument
873 *rhead = (struct xlog_rec_header *) offset; in xlog_seek_logrec_hdr()
893 *rhead = (struct xlog_rec_header *) offset; in xlog_seek_logrec_hdr()
1032 struct xlog_rec_header **rhead, /* ptr to last record */ in xlog_verify_head() argument
1085 buffer, rhead_blk, rhead, wrapped); in xlog_verify_head()
1101 *tail_blk = BLOCK_LSN(be64_to_cpu((*rhead)->h_tail_lsn)); in xlog_verify_head()
1111 be32_to_cpu((*rhead)->h_size)); in xlog_verify_head()
1143 struct xlog_rec_header *rhead, in xlog_check_unmount_rec() argument
1166 hblks = xlog_logrec_hblks(log, rhead); in xlog_check_unmount_rec()
1168 rhead_blk + hblks + BTOBB(be32_to_cpu(rhead->h_len))); in xlog_check_unmount_rec()
1171 be32_to_cpu(rhead->h_num_logops) == 1) { in xlog_check_unmount_rec()
1201 struct xlog_rec_header *rhead, in xlog_set_state() argument
1217 log->l_curr_cycle = be32_to_cpu(rhead->h_cycle); in xlog_set_state()
1220 atomic64_set(&log->l_tail_lsn, be64_to_cpu(rhead->h_tail_lsn)); in xlog_set_state()
1221 atomic64_set(&log->l_last_sync_lsn, be64_to_cpu(rhead->h_lsn)); in xlog_set_state()
1250 xlog_rec_header_t *rhead; in xlog_find_tail() local
1287 &rhead_blk, &rhead, &wrapped); in xlog_find_tail()
1295 *tail_blk = BLOCK_LSN(be64_to_cpu(rhead->h_tail_lsn)); in xlog_find_tail()
1300 xlog_set_state(log, *head_blk, rhead, rhead_blk, wrapped); in xlog_find_tail()
1307 error = xlog_check_unmount_rec(log, head_blk, tail_blk, rhead, in xlog_find_tail()
1326 &rhead_blk, &rhead, &wrapped); in xlog_find_tail()
1332 xlog_set_state(log, *head_blk, rhead, rhead_blk, in xlog_find_tail()
1336 rhead, rhead_blk, buffer, in xlog_find_tail()
2269 struct xlog_rec_header *rhead, in xlog_recover_ophdr_to_trans() argument
2298 trans->r_lsn = be64_to_cpu(rhead->h_lsn); in xlog_recover_ophdr_to_trans()
2314 struct xlog_rec_header *rhead, in xlog_recover_process_ophdr() argument
2344 trans = xlog_recover_ophdr_to_trans(rhash, rhead, ohead); in xlog_recover_process_ophdr()
2398 struct xlog_rec_header *rhead, in xlog_recover_process_data() argument
2408 end = dp + be32_to_cpu(rhead->h_len); in xlog_recover_process_data()
2409 num_logops = be32_to_cpu(rhead->h_num_logops); in xlog_recover_process_data()
2412 if (xlog_header_check_recover(log->l_mp, rhead)) in xlog_recover_process_data()
2415 trace_xfs_log_recover_record(log, rhead, pass); in xlog_recover_process_data()
2423 error = xlog_recover_process_ophdr(log, rhash, rhead, ohead, in xlog_recover_process_data()
2794 struct xlog_rec_header *rhead, in xlog_unpack_data() argument
2800 for (i = 0; i < BTOBB(be32_to_cpu(rhead->h_len)) && in xlog_unpack_data()
2802 *(__be32 *)dp = *(__be32 *)&rhead->h_cycle_data[i]; in xlog_unpack_data()
2807 xlog_in_core_2_t *xhdr = (xlog_in_core_2_t *)rhead; in xlog_unpack_data()
2808 for ( ; i < BTOBB(be32_to_cpu(rhead->h_len)); i++) { in xlog_unpack_data()
2824 struct xlog_rec_header *rhead, in xlog_recover_process() argument
2829 __le32 old_crc = rhead->h_crc; in xlog_recover_process()
2832 crc = xlog_cksum(log, rhead, dp, be32_to_cpu(rhead->h_len)); in xlog_recover_process()
2872 xlog_unpack_data(rhead, dp, log); in xlog_recover_process()
2874 return xlog_recover_process_data(log, rhash, rhead, dp, pass, in xlog_recover_process()
2881 struct xlog_rec_header *rhead, in xlog_valid_rec_header() argument
2888 rhead->h_magicno != cpu_to_be32(XLOG_HEADER_MAGIC_NUM))) in xlog_valid_rec_header()
2891 (!rhead->h_version || in xlog_valid_rec_header()
2892 (be32_to_cpu(rhead->h_version) & in xlog_valid_rec_header()
2895 __func__, be32_to_cpu(rhead->h_version)); in xlog_valid_rec_header()
2903 hlen = be32_to_cpu(rhead->h_len); in xlog_valid_rec_header()
2929 xlog_rec_header_t *rhead; in xlog_do_recovery_pass() local
2966 rhead = (xlog_rec_header_t *)offset; in xlog_do_recovery_pass()
2979 h_size = be32_to_cpu(rhead->h_size); in xlog_do_recovery_pass()
2980 h_len = be32_to_cpu(rhead->h_len); in xlog_do_recovery_pass()
2982 rhead->h_num_logops == cpu_to_be32(1)) { in xlog_do_recovery_pass()
2989 error = xlog_valid_rec_header(log, rhead, tail_blk, h_size); in xlog_do_recovery_pass()
2993 hblks = xlog_logrec_hblks(log, rhead); in xlog_do_recovery_pass()
3066 rhead = (xlog_rec_header_t *)offset; in xlog_do_recovery_pass()
3067 error = xlog_valid_rec_header(log, rhead, in xlog_do_recovery_pass()
3072 bblks = (int)BTOBB(be32_to_cpu(rhead->h_len)); in xlog_do_recovery_pass()
3128 error = xlog_recover_process(log, rhash, rhead, offset, in xlog_do_recovery_pass()
3148 rhead = (xlog_rec_header_t *)offset; in xlog_do_recovery_pass()
3149 error = xlog_valid_rec_header(log, rhead, blk_no, h_size); in xlog_do_recovery_pass()
3154 bblks = (int)BTOBB(be32_to_cpu(rhead->h_len)); in xlog_do_recovery_pass()
3160 error = xlog_recover_process(log, rhash, rhead, offset, pass, in xlog_do_recovery_pass()