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()
2390 struct LFS_RECORD_HDR *rh = lcb->lrh; in find_log_rec()
2398 lcb->lrh = rh; in find_log_rec()
2507 hdr = lcb->lrh; in find_client_next_lsn()
2524 if (hdr != lcb->lrh) in find_client_next_lsn()
2537 kfree(lcb->lrh); in find_client_next_lsn()
2538 lcb->lrh = hdr; in find_client_next_lsn()
2545 if (hdr != lcb->lrh) in find_client_next_lsn()
2570 kfree(lcb->lrh); in find_client_next_lsn()
2571 lcb->lrh = hdr; in find_client_next_lsn()
2594 kfree(lcb->lrh); in read_next_log_rec()
2595 lcb->lrh = NULL; in read_next_log_rec()
2831 const struct LOG_REC_HDR *lrh) in check_if_attr() argument
2833 u16 ro = le16_to_cpu(lrh->record_off); in check_if_attr()
2855 const struct LOG_REC_HDR *lrh) in check_if_index_root() argument
2857 u16 ro = le16_to_cpu(lrh->record_off); in check_if_index_root()
2880 const struct LOG_REC_HDR *lrh) in check_if_root_index() argument
2882 u16 ao = le16_to_cpu(lrh->attr_off); in check_if_root_index()
3034 const struct LOG_REC_HDR *lrh, u32 op, void *data, in do_action() argument
3055 u16 roff = le16_to_cpu(lrh->record_off); in do_action()
3056 u16 aoff = le16_to_cpu(lrh->attr_off); in do_action()
3058 u64 cbo = (u64)le16_to_cpu(lrh->cluster_off) << SECTOR_SHIFT; in do_action()
3059 u64 tvo = le64_to_cpu(lrh->target_vcn) << sbi->cluster_bits; in do_action()
3171 lco = (u64)le16_to_cpu(lrh->lcns_follow) << sbi->cluster_bits; in do_action()
3221 if (!check_if_attr(rec, lrh) || roff + dlen > record_size) in do_action()
3235 if (!check_if_attr(rec, lrh) || dlen < SIZEOF_RESIDENT || in do_action()
3237 Add2Ptr(attr2, asize) > Add2Ptr(lrh, rec_len) || in do_action()
3271 if (!check_if_attr(rec, lrh)) in do_action()
3286 if (!check_if_attr(rec, lrh)) in do_action()
3292 if (lrh->redo_len == lrh->undo_len) { in do_action()
3310 used - le16_to_cpu(lrh->record_off) - asize); in do_action()
3340 if (!check_if_attr(rec, lrh) || !attr->non_res || in do_action()
3349 used - le16_to_cpu(lrh->record_off) - asize); in do_action()
3369 if (!check_if_attr(rec, lrh) || !attr->non_res) in do_action()
3398 if (!check_if_index_root(rec, lrh) || in do_action()
3399 !check_if_root_index(attr, hdr, lrh) || in do_action()
3400 Add2Ptr(data, esize) > Add2Ptr(lrh, rec_len) || in do_action()
3405 e1 = Add2Ptr(attr, le16_to_cpu(lrh->attr_off)); in do_action()
3425 if (!check_if_index_root(rec, lrh) || in do_action()
3426 !check_if_root_index(attr, hdr, lrh)) { in do_action()
3430 e1 = Add2Ptr(attr, le16_to_cpu(lrh->attr_off)); in do_action()
3449 if (!check_if_index_root(rec, lrh) || in do_action()
3450 !check_if_root_index(attr, hdr, lrh)) { in do_action()
3454 e = Add2Ptr(attr, le16_to_cpu(lrh->attr_off)); in do_action()
3464 if (!check_if_index_root(rec, lrh) || in do_action()
3465 !check_if_root_index(attr, hdr, lrh)) { in do_action()
3469 e = Add2Ptr(attr, le16_to_cpu(lrh->attr_off)); in do_action()
3479 if (!check_if_index_root(rec, lrh) || in do_action()
3480 !check_if_root_index(attr, hdr, lrh)) { in do_action()
3484 e = Add2Ptr(attr, le16_to_cpu(lrh->attr_off)); in do_action()
3526 Add2Ptr(e, esize) > Add2Ptr(lrh, rec_len) || in do_action()
3772 const struct LOG_REC_HDR *lrh; in log_replay() local
4148 lrh = lcb->log_rec; in log_replay()
4149 frh = lcb->lrh; in log_replay()
4152 if (!check_log_rec(lrh, rec_len, le32_to_cpu(frh->transact_id), in log_replay()
4158 t16 = le16_to_cpu(lrh->redo_off); in log_replay()
4160 rt = Add2Ptr(lrh, t16); in log_replay()
4188 lrh = lcb->log_rec; in log_replay()
4189 frh = lcb->lrh; in log_replay()
4192 if (!check_log_rec(lrh, rec_len, le32_to_cpu(frh->transact_id), in log_replay()
4198 t16 = le16_to_cpu(lrh->redo_off); in log_replay()
4200 rt = Add2Ptr(lrh, t16); in log_replay()
4266 lrh = lcb->log_rec; in log_replay()
4267 frh = lcb->lrh; in log_replay()
4270 if (!check_log_rec(lrh, rec_len, le32_to_cpu(frh->transact_id), in log_replay()
4276 t32 = lrh_length(lrh); in log_replay()
4279 attr_names = kmemdup(Add2Ptr(lrh, t32), rec_len, GFP_NOFS); in log_replay()
4294 lrh = lcb->log_rec; in log_replay()
4295 frh = lcb->lrh; in log_replay()
4298 if (!check_log_rec(lrh, rec_len, le32_to_cpu(frh->transact_id), in log_replay()
4304 t16 = le16_to_cpu(lrh->redo_off); in log_replay()
4306 rt = Add2Ptr(lrh, t16); in log_replay()
4400 frh = lcb->lrh; in log_replay()
4403 lrh = lcb->log_rec; in log_replay()
4405 if (!check_log_rec(lrh, rec_len, transact_id, bytes_per_attr_entry)) { in log_replay()
4452 if (lrh->undo_op == cpu_to_le16(CompensationLogRecord)) in log_replay()
4456 switch (le16_to_cpu(lrh->redo_op)) { in log_replay()
4480 t16 = le16_to_cpu(lrh->target_attr); in log_replay()
4481 t64 = le64_to_cpu(lrh->target_vcn); in log_replay()
4523 t16 = le16_to_cpu(lrh->lcns_follow); in log_replay()
4525 size_t j = (size_t)(le64_to_cpu(lrh->target_vcn) - in log_replay()
4527 dp->page_lcns[j + i] = lrh->page_lcns[i]; in log_replay()
4534 le16_to_cpu(lrh->redo_len) / sizeof(struct LCN_RANGE); in log_replay()
4536 Add2Ptr(lrh, le16_to_cpu(lrh->redo_off)); in log_replay()
4560 t16 = le16_to_cpu(lrh->target_attr); in log_replay()
4587 t16 = le16_to_cpu(lrh->redo_off); in log_replay()
4590 struct OPEN_ATTR_ENRTY_32 *oe0 = Add2Ptr(lrh, t16); in log_replay()
4599 memcpy(oe, Add2Ptr(lrh, t16), bytes_per_attr_entry); in log_replay()
4602 t16 = le16_to_cpu(lrh->undo_len); in log_replay()
4611 Add2Ptr(lrh, le16_to_cpu(lrh->undo_off)), t16); in log_replay()
4621 t16 = le16_to_cpu(lrh->target_attr); in log_replay()
4622 t64 = le64_to_cpu(lrh->target_vcn); in log_replay()
4625 size_t j = le64_to_cpu(lrh->target_vcn) - in log_replay()
4628 dp->page_lcns[j] = lrh->page_lcns[0]; in log_replay()
4873 frh = lcb->lrh; in log_replay()
4880 lrh = lcb->log_rec; in log_replay()
4882 if (!check_log_rec(lrh, rec_len, transact_id, bytes_per_attr_entry)) { in log_replay()
4888 if (lrh->lcns_follow) in log_replay()
4894 t16 = le16_to_cpu(lrh->target_attr); in log_replay()
4895 t64 = le64_to_cpu(lrh->target_vcn); in log_replay()
4904 t16 = le16_to_cpu(lrh->target_attr); in log_replay()
4925 vcn = le64_to_cpu(lrh->target_vcn); in log_replay()
4933 data = Add2Ptr(lrh, le16_to_cpu(lrh->redo_off)); in log_replay()
4934 dlen = le16_to_cpu(lrh->redo_len); in log_replay()
4939 for (i = le16_to_cpu(lrh->lcns_follow); i; i--) { in log_replay()
4943 voff = le16_to_cpu(lrh->record_off) + in log_replay()
4944 le16_to_cpu(lrh->attr_off); in log_replay()
4945 voff += le16_to_cpu(lrh->cluster_off) << SECTOR_SHIFT; in log_replay()
4948 j = le64_to_cpu(lrh->target_vcn) - le64_to_cpu(dp->vcn); in log_replay()
4978 t16 = le16_to_cpu(lrh->redo_op); in log_replay()
4983 err = do_action(log, oe, lrh, t16, data, dlen, rec_len, &rec_lsn); in log_replay()
5030 lrh = lcb->log_rec; in log_replay()
5031 frh = lcb->lrh; in log_replay()
5035 if (!check_log_rec(lrh, rec_len, transact_id, bytes_per_attr_entry)) { in log_replay()
5040 if (lrh->undo_op == cpu_to_le16(Noop)) in log_replay()
5043 oe = Add2Ptr(oatbl, le16_to_cpu(lrh->target_attr)); in log_replay()
5046 t16 = le16_to_cpu(lrh->lcns_follow); in log_replay()
5050 is_mapped = run_lookup_entry(oa->run1, le64_to_cpu(lrh->target_vcn), in log_replay()
5061 vcn = le64_to_cpu(lrh->target_vcn); in log_replay()
5065 for (i = 0, vcn = le64_to_cpu(lrh->target_vcn), in log_replay()
5080 t16 = le16_to_cpu(lrh->undo_op); in log_replay()
5085 data = Add2Ptr(lrh, le16_to_cpu(lrh->undo_off)); in log_replay()
5086 dlen = le16_to_cpu(lrh->undo_len); in log_replay()
5089 err = do_action(log, oe, lrh, t16, data, dlen, rec_len, NULL); in log_replay()