Lines Matching refs:lrh
396 struct LFS_RECORD_HDR *lrh; // Log record header of the current lsn. member
407 kfree(lcb->lrh); in lcb_put()
2388 struct LFS_RECORD_HDR *rh = lcb->lrh; in find_log_rec()
2396 lcb->lrh = rh; in find_log_rec()
2505 hdr = lcb->lrh; in find_client_next_lsn()
2522 if (hdr != lcb->lrh) in find_client_next_lsn()
2535 kfree(lcb->lrh); in find_client_next_lsn()
2536 lcb->lrh = hdr; in find_client_next_lsn()
2543 if (hdr != lcb->lrh) in find_client_next_lsn()
2568 kfree(lcb->lrh); in find_client_next_lsn()
2569 lcb->lrh = hdr; in find_client_next_lsn()
2592 kfree(lcb->lrh); in read_next_log_rec()
2593 lcb->lrh = NULL; in read_next_log_rec()
2833 const struct LOG_REC_HDR *lrh) in check_if_attr() argument
2835 u16 ro = le16_to_cpu(lrh->record_off); in check_if_attr()
2857 const struct LOG_REC_HDR *lrh) in check_if_index_root() argument
2859 u16 ro = le16_to_cpu(lrh->record_off); in check_if_index_root()
2882 const struct LOG_REC_HDR *lrh) in check_if_root_index() argument
2884 u16 ao = le16_to_cpu(lrh->attr_off); in check_if_root_index()
3036 const struct LOG_REC_HDR *lrh, u32 op, void *data, in do_action() argument
3057 u16 roff = le16_to_cpu(lrh->record_off); in do_action()
3058 u16 aoff = le16_to_cpu(lrh->attr_off); in do_action()
3060 u64 cbo = (u64)le16_to_cpu(lrh->cluster_off) << SECTOR_SHIFT; in do_action()
3061 u64 tvo = le64_to_cpu(lrh->target_vcn) << sbi->cluster_bits; in do_action()
3173 lco = (u64)le16_to_cpu(lrh->lcns_follow) << sbi->cluster_bits; in do_action()
3223 if (!check_if_attr(rec, lrh) || roff + dlen > record_size) in do_action()
3237 if (!check_if_attr(rec, lrh) || dlen < SIZEOF_RESIDENT || in do_action()
3239 Add2Ptr(attr2, asize) > Add2Ptr(lrh, rec_len) || in do_action()
3273 if (!check_if_attr(rec, lrh)) in do_action()
3288 if (!check_if_attr(rec, lrh)) in do_action()
3294 if (lrh->redo_len == lrh->undo_len) { in do_action()
3312 used - le16_to_cpu(lrh->record_off) - asize); in do_action()
3342 if (!check_if_attr(rec, lrh) || !attr->non_res || in do_action()
3351 used - le16_to_cpu(lrh->record_off) - asize); in do_action()
3371 if (!check_if_attr(rec, lrh) || !attr->non_res) in do_action()
3400 if (!check_if_index_root(rec, lrh) || in do_action()
3401 !check_if_root_index(attr, hdr, lrh) || in do_action()
3402 Add2Ptr(data, esize) > Add2Ptr(lrh, rec_len) || in do_action()
3407 e1 = Add2Ptr(attr, le16_to_cpu(lrh->attr_off)); in do_action()
3427 if (!check_if_index_root(rec, lrh) || in do_action()
3428 !check_if_root_index(attr, hdr, lrh)) { in do_action()
3432 e1 = Add2Ptr(attr, le16_to_cpu(lrh->attr_off)); in do_action()
3451 if (!check_if_index_root(rec, lrh) || in do_action()
3452 !check_if_root_index(attr, hdr, lrh)) { in do_action()
3456 e = Add2Ptr(attr, le16_to_cpu(lrh->attr_off)); in do_action()
3466 if (!check_if_index_root(rec, lrh) || in do_action()
3467 !check_if_root_index(attr, hdr, lrh)) { in do_action()
3471 e = Add2Ptr(attr, le16_to_cpu(lrh->attr_off)); in do_action()
3481 if (!check_if_index_root(rec, lrh) || in do_action()
3482 !check_if_root_index(attr, hdr, lrh)) { in do_action()
3486 e = Add2Ptr(attr, le16_to_cpu(lrh->attr_off)); in do_action()
3528 Add2Ptr(e, esize) > Add2Ptr(lrh, rec_len) || in do_action()
3772 const struct LOG_REC_HDR *lrh; in log_replay() local
4139 lrh = lcb->log_rec; in log_replay()
4140 frh = lcb->lrh; in log_replay()
4143 if (!check_log_rec(lrh, rec_len, le32_to_cpu(frh->transact_id), in log_replay()
4149 t16 = le16_to_cpu(lrh->redo_off); in log_replay()
4151 rt = Add2Ptr(lrh, t16); in log_replay()
4179 lrh = lcb->log_rec; in log_replay()
4180 frh = lcb->lrh; in log_replay()
4183 if (!check_log_rec(lrh, rec_len, le32_to_cpu(frh->transact_id), in log_replay()
4189 t16 = le16_to_cpu(lrh->redo_off); in log_replay()
4191 rt = Add2Ptr(lrh, t16); in log_replay()
4257 lrh = lcb->log_rec; in log_replay()
4258 frh = lcb->lrh; in log_replay()
4261 if (!check_log_rec(lrh, rec_len, le32_to_cpu(frh->transact_id), in log_replay()
4267 t32 = lrh_length(lrh); in log_replay()
4270 attr_names = kmemdup(Add2Ptr(lrh, t32), rec_len, GFP_NOFS); in log_replay()
4289 lrh = lcb->log_rec; in log_replay()
4290 frh = lcb->lrh; in log_replay()
4293 if (!check_log_rec(lrh, rec_len, le32_to_cpu(frh->transact_id), in log_replay()
4299 t16 = le16_to_cpu(lrh->redo_off); in log_replay()
4301 rt = Add2Ptr(lrh, t16); in log_replay()
4415 frh = lcb->lrh; in log_replay()
4418 lrh = lcb->log_rec; in log_replay()
4420 if (!check_log_rec(lrh, rec_len, transact_id, bytes_per_attr_entry)) { in log_replay()
4467 if (lrh->undo_op == cpu_to_le16(CompensationLogRecord)) in log_replay()
4471 switch (le16_to_cpu(lrh->redo_op)) { in log_replay()
4495 t16 = le16_to_cpu(lrh->target_attr); in log_replay()
4496 t64 = le64_to_cpu(lrh->target_vcn); in log_replay()
4538 t16 = le16_to_cpu(lrh->lcns_follow); in log_replay()
4540 size_t j = (size_t)(le64_to_cpu(lrh->target_vcn) - in log_replay()
4542 dp->page_lcns[j + i] = lrh->page_lcns[i]; in log_replay()
4549 le16_to_cpu(lrh->redo_len) / sizeof(struct LCN_RANGE); in log_replay()
4551 Add2Ptr(lrh, le16_to_cpu(lrh->redo_off)); in log_replay()
4575 t16 = le16_to_cpu(lrh->target_attr); in log_replay()
4602 t16 = le16_to_cpu(lrh->redo_off); in log_replay()
4605 struct OPEN_ATTR_ENRTY_32 *oe0 = Add2Ptr(lrh, t16); in log_replay()
4614 memcpy(oe, Add2Ptr(lrh, t16), bytes_per_attr_entry); in log_replay()
4617 t16 = le16_to_cpu(lrh->undo_len); in log_replay()
4626 Add2Ptr(lrh, le16_to_cpu(lrh->undo_off)), t16); in log_replay()
4636 t16 = le16_to_cpu(lrh->target_attr); in log_replay()
4637 t64 = le64_to_cpu(lrh->target_vcn); in log_replay()
4640 size_t j = le64_to_cpu(lrh->target_vcn) - in log_replay()
4643 dp->page_lcns[j] = lrh->page_lcns[0]; in log_replay()
4893 frh = lcb->lrh; in log_replay()
4900 lrh = lcb->log_rec; in log_replay()
4902 if (!check_log_rec(lrh, rec_len, transact_id, bytes_per_attr_entry)) { in log_replay()
4908 if (lrh->lcns_follow) in log_replay()
4914 t16 = le16_to_cpu(lrh->target_attr); in log_replay()
4915 t64 = le64_to_cpu(lrh->target_vcn); in log_replay()
4924 t16 = le16_to_cpu(lrh->target_attr); in log_replay()
4945 vcn = le64_to_cpu(lrh->target_vcn); in log_replay()
4953 data = Add2Ptr(lrh, le16_to_cpu(lrh->redo_off)); in log_replay()
4954 dlen = le16_to_cpu(lrh->redo_len); in log_replay()
4959 for (i = le16_to_cpu(lrh->lcns_follow); i; i--) { in log_replay()
4963 voff = le16_to_cpu(lrh->record_off) + in log_replay()
4964 le16_to_cpu(lrh->attr_off); in log_replay()
4965 voff += le16_to_cpu(lrh->cluster_off) << SECTOR_SHIFT; in log_replay()
4968 j = le64_to_cpu(lrh->target_vcn) - le64_to_cpu(dp->vcn); in log_replay()
4998 t16 = le16_to_cpu(lrh->redo_op); in log_replay()
5003 err = do_action(log, oe, lrh, t16, data, dlen, rec_len, &rec_lsn); in log_replay()
5050 lrh = lcb->log_rec; in log_replay()
5051 frh = lcb->lrh; in log_replay()
5055 if (!check_log_rec(lrh, rec_len, transact_id, bytes_per_attr_entry)) { in log_replay()
5060 if (lrh->undo_op == cpu_to_le16(Noop)) in log_replay()
5063 oe = Add2Ptr(oatbl, le16_to_cpu(lrh->target_attr)); in log_replay()
5066 t16 = le16_to_cpu(lrh->lcns_follow); in log_replay()
5070 is_mapped = run_lookup_entry(oa->run1, le64_to_cpu(lrh->target_vcn), in log_replay()
5081 vcn = le64_to_cpu(lrh->target_vcn); in log_replay()
5085 for (i = 0, vcn = le64_to_cpu(lrh->target_vcn), in log_replay()
5100 t16 = le16_to_cpu(lrh->undo_op); in log_replay()
5105 data = Add2Ptr(lrh, le16_to_cpu(lrh->undo_off)); in log_replay()
5106 dlen = le16_to_cpu(lrh->undo_len); in log_replay()
5109 err = do_action(log, oe, lrh, t16, data, dlen, rec_len, NULL); in log_replay()