Lines Matching refs:rhead
777 struct xlog_rec_header **rhead, in xlog_rseek_logrec_hdr() argument
800 *rhead = (struct xlog_rec_header *) offset; in xlog_rseek_logrec_hdr()
821 *rhead = (struct xlog_rec_header *) offset; in xlog_rseek_logrec_hdr()
851 struct xlog_rec_header **rhead, in xlog_seek_logrec_hdr() argument
874 *rhead = (struct xlog_rec_header *) offset; in xlog_seek_logrec_hdr()
894 *rhead = (struct xlog_rec_header *) offset; in xlog_seek_logrec_hdr()
1033 struct xlog_rec_header **rhead, /* ptr to last record */ in xlog_verify_head() argument
1086 buffer, rhead_blk, rhead, wrapped); in xlog_verify_head()
1102 *tail_blk = BLOCK_LSN(be64_to_cpu((*rhead)->h_tail_lsn)); in xlog_verify_head()
1112 be32_to_cpu((*rhead)->h_size)); in xlog_verify_head()
1144 struct xlog_rec_header *rhead, in xlog_check_unmount_rec() argument
1167 hblks = xlog_logrec_hblks(log, rhead); in xlog_check_unmount_rec()
1169 rhead_blk + hblks + BTOBB(be32_to_cpu(rhead->h_len))); in xlog_check_unmount_rec()
1172 be32_to_cpu(rhead->h_num_logops) == 1) { in xlog_check_unmount_rec()
1202 struct xlog_rec_header *rhead, in xlog_set_state() argument
1218 log->l_curr_cycle = be32_to_cpu(rhead->h_cycle); in xlog_set_state()
1221 atomic64_set(&log->l_tail_lsn, be64_to_cpu(rhead->h_tail_lsn)); in xlog_set_state()
1222 atomic64_set(&log->l_last_sync_lsn, be64_to_cpu(rhead->h_lsn)); in xlog_set_state()
1251 xlog_rec_header_t *rhead; in xlog_find_tail() local
1288 &rhead_blk, &rhead, &wrapped); in xlog_find_tail()
1296 *tail_blk = BLOCK_LSN(be64_to_cpu(rhead->h_tail_lsn)); in xlog_find_tail()
1301 xlog_set_state(log, *head_blk, rhead, rhead_blk, wrapped); in xlog_find_tail()
1308 error = xlog_check_unmount_rec(log, head_blk, tail_blk, rhead, in xlog_find_tail()
1327 &rhead_blk, &rhead, &wrapped); in xlog_find_tail()
1333 xlog_set_state(log, *head_blk, rhead, rhead_blk, in xlog_find_tail()
1337 rhead, rhead_blk, buffer, in xlog_find_tail()
2296 struct xlog_rec_header *rhead, in xlog_recover_ophdr_to_trans() argument
2325 trans->r_lsn = be64_to_cpu(rhead->h_lsn); in xlog_recover_ophdr_to_trans()
2341 struct xlog_rec_header *rhead, in xlog_recover_process_ophdr() argument
2371 trans = xlog_recover_ophdr_to_trans(rhash, rhead, ohead); in xlog_recover_process_ophdr()
2425 struct xlog_rec_header *rhead, in xlog_recover_process_data() argument
2435 end = dp + be32_to_cpu(rhead->h_len); in xlog_recover_process_data()
2436 num_logops = be32_to_cpu(rhead->h_num_logops); in xlog_recover_process_data()
2439 if (xlog_header_check_recover(log->l_mp, rhead)) in xlog_recover_process_data()
2442 trace_xfs_log_recover_record(log, rhead, pass); in xlog_recover_process_data()
2450 error = xlog_recover_process_ophdr(log, rhash, rhead, ohead, in xlog_recover_process_data()
2822 struct xlog_rec_header *rhead, in xlog_unpack_data() argument
2828 for (i = 0; i < BTOBB(be32_to_cpu(rhead->h_len)) && in xlog_unpack_data()
2830 *(__be32 *)dp = *(__be32 *)&rhead->h_cycle_data[i]; in xlog_unpack_data()
2835 xlog_in_core_2_t *xhdr = (xlog_in_core_2_t *)rhead; in xlog_unpack_data()
2836 for ( ; i < BTOBB(be32_to_cpu(rhead->h_len)); i++) { in xlog_unpack_data()
2852 struct xlog_rec_header *rhead, in xlog_recover_process() argument
2857 __le32 old_crc = rhead->h_crc; in xlog_recover_process()
2860 crc = xlog_cksum(log, rhead, dp, be32_to_cpu(rhead->h_len)); in xlog_recover_process()
2900 xlog_unpack_data(rhead, dp, log); in xlog_recover_process()
2902 return xlog_recover_process_data(log, rhash, rhead, dp, pass, in xlog_recover_process()
2909 struct xlog_rec_header *rhead, in xlog_valid_rec_header() argument
2916 rhead->h_magicno != cpu_to_be32(XLOG_HEADER_MAGIC_NUM))) in xlog_valid_rec_header()
2919 (!rhead->h_version || in xlog_valid_rec_header()
2920 (be32_to_cpu(rhead->h_version) & in xlog_valid_rec_header()
2923 __func__, be32_to_cpu(rhead->h_version)); in xlog_valid_rec_header()
2931 hlen = be32_to_cpu(rhead->h_len); in xlog_valid_rec_header()
2957 xlog_rec_header_t *rhead; in xlog_do_recovery_pass() local
2994 rhead = (xlog_rec_header_t *)offset; in xlog_do_recovery_pass()
3007 h_size = be32_to_cpu(rhead->h_size); in xlog_do_recovery_pass()
3008 h_len = be32_to_cpu(rhead->h_len); in xlog_do_recovery_pass()
3010 rhead->h_num_logops == cpu_to_be32(1)) { in xlog_do_recovery_pass()
3017 error = xlog_valid_rec_header(log, rhead, tail_blk, h_size); in xlog_do_recovery_pass()
3021 hblks = xlog_logrec_hblks(log, rhead); in xlog_do_recovery_pass()
3094 rhead = (xlog_rec_header_t *)offset; in xlog_do_recovery_pass()
3095 error = xlog_valid_rec_header(log, rhead, in xlog_do_recovery_pass()
3100 bblks = (int)BTOBB(be32_to_cpu(rhead->h_len)); in xlog_do_recovery_pass()
3156 error = xlog_recover_process(log, rhash, rhead, offset, in xlog_do_recovery_pass()
3176 rhead = (xlog_rec_header_t *)offset; in xlog_do_recovery_pass()
3177 error = xlog_valid_rec_header(log, rhead, blk_no, h_size); in xlog_do_recovery_pass()
3182 bblks = (int)BTOBB(be32_to_cpu(rhead->h_len)); in xlog_do_recovery_pass()
3188 error = xlog_recover_process(log, rhash, rhead, offset, pass, in xlog_do_recovery_pass()