H A D | xfs_log_recover.c | 892 xlog_rec_header_t *rhead; xlog_find_tail() local 966 rhead = (xlog_rec_header_t *)offset; xlog_find_tail() 967 *tail_blk = BLOCK_LSN(be64_to_cpu(rhead->h_tail_lsn)); xlog_find_tail() 981 log->l_curr_cycle = be32_to_cpu(rhead->h_cycle); xlog_find_tail() 984 atomic64_set(&log->l_tail_lsn, be64_to_cpu(rhead->h_tail_lsn)); xlog_find_tail() 985 atomic64_set(&log->l_last_sync_lsn, be64_to_cpu(rhead->h_lsn)); xlog_find_tail() 1003 int h_size = be32_to_cpu(rhead->h_size); xlog_find_tail() 1004 int h_version = be32_to_cpu(rhead->h_version); xlog_find_tail() 1018 BTOBB(be32_to_cpu(rhead->h_len))) % log->l_logBBsize; xlog_find_tail() 1021 be32_to_cpu(rhead->h_num_logops) == 1) { xlog_find_tail() 3649 struct xlog_rec_header *rhead, xlog_recover_ophdr_to_trans() 3678 trans->r_lsn = be64_to_cpu(rhead->h_lsn); 3694 struct xlog_rec_header *rhead, xlog_recover_process_ophdr() 3722 trans = xlog_recover_ophdr_to_trans(rhash, rhead, ohead); xlog_recover_process_ophdr() 3745 struct xlog_rec_header *rhead, xlog_recover_process_data() 3754 end = dp + be32_to_cpu(rhead->h_len); xlog_recover_process_data() 3755 num_logops = be32_to_cpu(rhead->h_num_logops); xlog_recover_process_data() 3758 if (xlog_header_check_recover(log->l_mp, rhead)) xlog_recover_process_data() 3768 error = xlog_recover_process_ophdr(log, rhash, rhead, ohead, xlog_recover_process_data() 4138 struct xlog_rec_header *rhead, xlog_unpack_data_crc() 4144 crc = xlog_cksum(log, rhead, dp, be32_to_cpu(rhead->h_len)); xlog_unpack_data_crc() 4145 if (crc != rhead->h_crc) { xlog_unpack_data_crc() 4146 if (rhead->h_crc || xfs_sb_version_hascrc(&log->l_mp->m_sb)) { xlog_unpack_data_crc() 4149 le32_to_cpu(rhead->h_crc), xlog_unpack_data_crc() 4168 struct xlog_rec_header *rhead, xlog_unpack_data() 4175 error = xlog_unpack_data_crc(rhead, dp, log); xlog_unpack_data() 4179 for (i = 0; i < BTOBB(be32_to_cpu(rhead->h_len)) && xlog_unpack_data() 4181 *(__be32 *)dp = *(__be32 *)&rhead->h_cycle_data[i]; xlog_unpack_data() 4186 xlog_in_core_2_t *xhdr = (xlog_in_core_2_t *)rhead; xlog_unpack_data() 4187 for ( ; i < BTOBB(be32_to_cpu(rhead->h_len)); i++) { xlog_unpack_data() 4201 struct xlog_rec_header *rhead, xlog_valid_rec_header() 4206 if (unlikely(rhead->h_magicno != cpu_to_be32(XLOG_HEADER_MAGIC_NUM))) { xlog_valid_rec_header() 4212 (!rhead->h_version || xlog_valid_rec_header() 4213 (be32_to_cpu(rhead->h_version) & (~XLOG_VERSION_OKBITS))))) { xlog_valid_rec_header() 4215 __func__, be32_to_cpu(rhead->h_version)); xlog_valid_rec_header() 4220 hlen = be32_to_cpu(rhead->h_len); xlog_valid_rec_header() 4249 xlog_rec_header_t *rhead; xlog_do_recovery_pass() local 4278 rhead = (xlog_rec_header_t *)offset; xlog_do_recovery_pass() 4279 error = xlog_valid_rec_header(log, rhead, tail_blk); xlog_do_recovery_pass() 4282 h_size = be32_to_cpu(rhead->h_size); xlog_do_recovery_pass() 4283 if ((be32_to_cpu(rhead->h_version) & XLOG_VERSION_2) && xlog_do_recovery_pass() 4362 rhead = (xlog_rec_header_t *)offset; xlog_do_recovery_pass() 4363 error = xlog_valid_rec_header(log, rhead, xlog_do_recovery_pass() 4368 bblks = (int)BTOBB(be32_to_cpu(rhead->h_len)); xlog_do_recovery_pass() 4416 error = xlog_unpack_data(rhead, offset, log); xlog_do_recovery_pass() 4421 rhead, offset, pass); xlog_do_recovery_pass() 4437 rhead = (xlog_rec_header_t *)offset; xlog_do_recovery_pass() 4438 error = xlog_valid_rec_header(log, rhead, blk_no); xlog_do_recovery_pass() 4443 bblks = (int)BTOBB(be32_to_cpu(rhead->h_len)); xlog_do_recovery_pass() 4449 error = xlog_unpack_data(rhead, offset, log); xlog_do_recovery_pass() 4454 rhead, offset, pass); xlog_do_recovery_pass() 3647 xlog_recover_ophdr_to_trans( struct hlist_head rhash[], struct xlog_rec_header *rhead, struct xlog_op_header *ohead) xlog_recover_ophdr_to_trans() argument 3691 xlog_recover_process_ophdr( struct xlog *log, struct hlist_head rhash[], struct xlog_rec_header *rhead, struct xlog_op_header *ohead, char *dp, char *end, int pass) xlog_recover_process_ophdr() argument 3742 xlog_recover_process_data( struct xlog *log, struct hlist_head rhash[], struct xlog_rec_header *rhead, char *dp, int pass) xlog_recover_process_data() argument 4137 xlog_unpack_data_crc( struct xlog_rec_header *rhead, char *dp, struct xlog *log) xlog_unpack_data_crc() argument 4167 xlog_unpack_data( struct xlog_rec_header *rhead, char *dp, struct xlog *log) xlog_unpack_data() argument 4199 xlog_valid_rec_header( struct xlog *log, struct xlog_rec_header *rhead, xfs_daddr_t blkno) xlog_valid_rec_header() argument
|