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 atomic64_set(&log->l_last_sync_lsn, be64_to_cpu(rhead->h_lsn)); in xlog_set_state()
1244 xlog_rec_header_t *rhead; in xlog_find_tail() local
1281 &rhead_blk, &rhead, &wrapped); in xlog_find_tail()
1289 *tail_blk = BLOCK_LSN(be64_to_cpu(rhead->h_tail_lsn)); in xlog_find_tail()
1294 xlog_set_state(log, *head_blk, rhead, rhead_blk, wrapped); in xlog_find_tail()
1301 error = xlog_check_unmount_rec(log, head_blk, tail_blk, rhead, in xlog_find_tail()
1320 &rhead_blk, &rhead, &wrapped); in xlog_find_tail()
1326 xlog_set_state(log, *head_blk, rhead, rhead_blk, in xlog_find_tail()
1330 rhead, rhead_blk, buffer, in xlog_find_tail()
2291 struct xlog_rec_header *rhead, in xlog_recover_ophdr_to_trans() argument
2320 trans->r_lsn = be64_to_cpu(rhead->h_lsn); in xlog_recover_ophdr_to_trans()
2336 struct xlog_rec_header *rhead, in xlog_recover_process_ophdr() argument
2366 trans = xlog_recover_ophdr_to_trans(rhash, rhead, ohead); in xlog_recover_process_ophdr()
2420 struct xlog_rec_header *rhead, in xlog_recover_process_data() argument
2430 end = dp + be32_to_cpu(rhead->h_len); in xlog_recover_process_data()
2431 num_logops = be32_to_cpu(rhead->h_num_logops); in xlog_recover_process_data()
2434 if (xlog_header_check_recover(log->l_mp, rhead)) in xlog_recover_process_data()
2437 trace_xfs_log_recover_record(log, rhead, pass); in xlog_recover_process_data()
2445 error = xlog_recover_process_ophdr(log, rhash, rhead, ohead, in xlog_recover_process_data()
2820 struct xlog_rec_header *rhead, in xlog_unpack_data() argument
2826 for (i = 0; i < BTOBB(be32_to_cpu(rhead->h_len)) && in xlog_unpack_data()
2828 *(__be32 *)dp = *(__be32 *)&rhead->h_cycle_data[i]; in xlog_unpack_data()
2833 xlog_in_core_2_t *xhdr = (xlog_in_core_2_t *)rhead; in xlog_unpack_data()
2834 for ( ; i < BTOBB(be32_to_cpu(rhead->h_len)); i++) { in xlog_unpack_data()
2850 struct xlog_rec_header *rhead, in xlog_recover_process() argument
2855 __le32 old_crc = rhead->h_crc; in xlog_recover_process()
2858 crc = xlog_cksum(log, rhead, dp, be32_to_cpu(rhead->h_len)); in xlog_recover_process()
2898 xlog_unpack_data(rhead, dp, log); in xlog_recover_process()
2900 return xlog_recover_process_data(log, rhash, rhead, dp, pass, in xlog_recover_process()
2907 struct xlog_rec_header *rhead, in xlog_valid_rec_header() argument
2914 rhead->h_magicno != cpu_to_be32(XLOG_HEADER_MAGIC_NUM))) in xlog_valid_rec_header()
2917 (!rhead->h_version || in xlog_valid_rec_header()
2918 (be32_to_cpu(rhead->h_version) & in xlog_valid_rec_header()
2921 __func__, be32_to_cpu(rhead->h_version)); in xlog_valid_rec_header()
2929 hlen = be32_to_cpu(rhead->h_len); in xlog_valid_rec_header()
2955 xlog_rec_header_t *rhead; in xlog_do_recovery_pass() local
2992 rhead = (xlog_rec_header_t *)offset; in xlog_do_recovery_pass()
3005 h_size = be32_to_cpu(rhead->h_size); in xlog_do_recovery_pass()
3006 h_len = be32_to_cpu(rhead->h_len); in xlog_do_recovery_pass()
3008 rhead->h_num_logops == cpu_to_be32(1)) { in xlog_do_recovery_pass()
3015 error = xlog_valid_rec_header(log, rhead, tail_blk, h_size); in xlog_do_recovery_pass()
3019 hblks = xlog_logrec_hblks(log, rhead); in xlog_do_recovery_pass()
3092 rhead = (xlog_rec_header_t *)offset; in xlog_do_recovery_pass()
3093 error = xlog_valid_rec_header(log, rhead, in xlog_do_recovery_pass()
3098 bblks = (int)BTOBB(be32_to_cpu(rhead->h_len)); in xlog_do_recovery_pass()
3154 error = xlog_recover_process(log, rhash, rhead, offset, in xlog_do_recovery_pass()
3174 rhead = (xlog_rec_header_t *)offset; in xlog_do_recovery_pass()
3175 error = xlog_valid_rec_header(log, rhead, blk_no, h_size); in xlog_do_recovery_pass()
3180 bblks = (int)BTOBB(be32_to_cpu(rhead->h_len)); in xlog_do_recovery_pass()
3186 error = xlog_recover_process(log, rhash, rhead, offset, pass, in xlog_do_recovery_pass()