Lines Matching refs:rhdr

28 	struct NTFS_RECORD_HEADER rhdr; // 'RSTR'  member
268 struct NTFS_RECORD_HEADER rhdr; // 'RCRD' member
428 const struct RESTART_HDR *rhdr) in is_rst_page_hdr_valid() argument
430 u32 sys_page = le32_to_cpu(rhdr->sys_page_size); in is_rst_page_hdr_valid()
431 u32 page_size = le32_to_cpu(rhdr->page_size); in is_rst_page_hdr_valid()
445 if (le16_to_cpu(rhdr->major_ver) <= 1 && !rhdr->minor_ver) in is_rst_page_hdr_valid()
448 if (le16_to_cpu(rhdr->major_ver) > 2) in is_rst_page_hdr_valid()
451 ro = le16_to_cpu(rhdr->ra_off); in is_rst_page_hdr_valid()
456 end_usa += le16_to_cpu(rhdr->rhdr.fix_off); in is_rst_page_hdr_valid()
464 static inline bool is_rst_area_valid(const struct RESTART_HDR *rhdr) in is_rst_area_valid() argument
469 u16 ro = le16_to_cpu(rhdr->ra_off); in is_rst_area_valid()
470 u32 sys_page = le32_to_cpu(rhdr->sys_page_size); in is_rst_area_valid()
476 ra = Add2Ptr(rhdr, ro); in is_rst_area_valid()
496 if (le16_to_cpu(rhdr->ra_off) + le16_to_cpu(ra->ra_len) > sys_page || in is_rst_area_valid()
529 static inline bool is_client_area_valid(const struct RESTART_HDR *rhdr, in is_client_area_valid() argument
532 u16 ro = le16_to_cpu(rhdr->ra_off); in is_client_area_valid()
533 const struct RESTART_AREA *ra = Add2Ptr(rhdr, ro); in is_client_area_valid()
1079 return le64_to_cpu(hdr->rhdr.lsn); in hdr_file_off()
1087 u64 h_lsn = le64_to_cpu(hdr->rhdr.lsn); in base_lsn()
1148 if (page_buf->rhdr.sign != NTFS_FFFF_SIGNATURE) in read_log_page()
1149 ntfs_fix_post_read(&page_buf->rhdr, PAGE_SIZE, false); in read_log_page()
1154 bBAAD = page_buf->rhdr.sign == NTFS_BAAD_SIGNATURE; in read_log_page()
1214 if (r_page->rhdr.sign == NTFS_RCRD_SIGNATURE) { in log_read_rst()
1219 brst = r_page->rhdr.sign == NTFS_RSTR_SIGNATURE; in log_read_rst()
1220 bchk = r_page->rhdr.sign == NTFS_CHKD_SIGNATURE; in log_read_rst()
1223 if (r_page->rhdr.sign != NTFS_FFFF_SIGNATURE) { in log_read_rst()
1284 if (r_page->rhdr.sign == NTFS_CHKD_SIGNATURE) { in log_read_rst()
1286 info->last_lsn = le64_to_cpu(r_page->rhdr.lsn); in log_read_rst()
1496 if (this_lsn == le64_to_cpu(page->rhdr.lsn)) { in next_log_lsn()
1575 const struct NTFS_RECORD_HEADER *rhdr = &rp->rhdr; in check_subseq_log_page() local
1576 u64 lsn = le64_to_cpu(rhdr->lsn); in check_subseq_log_page()
1578 if (rhdr->sign == NTFS_FFFF_SIGNATURE || !rhdr->sign) in check_subseq_log_page()
1651 usa_error || second_tail->rhdr.sign != NTFS_RCRD_SIGNATURE) { in last_log_lsn()
1663 usa_error || first_tail->rhdr.sign != NTFS_RCRD_SIGNATURE) { in last_log_lsn()
1830 page->rhdr.sign == NTFS_RCRD_SIGNATURE && in last_log_lsn()
1831 cur_page->rhdr.lsn == page->rhdr.lsn && in last_log_lsn()
1847 lsn_cur = le64_to_cpu(cur_page->rhdr.lsn); in last_log_lsn()
1948 lsn_cur = le64_to_cpu(page->rhdr.lsn); in last_log_lsn()
2029 last_ok_lsn = le64_to_cpu(page->rhdr.lsn); in last_log_lsn()
2208 page->rhdr.lsn = page->record_hdr.last_end_lsn; in last_log_lsn()
2214 ntfs_fix_pre_write(&page->rhdr, log->page_size); in last_log_lsn()
2285 if (lsn > le64_to_cpu(ph->rhdr.lsn)) { in read_log_rec_buf()
2302 if (ph->rhdr.lsn == ph->record_hdr.last_end_lsn || in read_log_rec_buf()
2303 lsn > le64_to_cpu(ph->rhdr.lsn)) { in read_log_rec_buf()
2647 const struct NTFS_RECORD_HEADER *r = &ib->rhdr; in check_index_buffer()
2788 u16 fo = le16_to_cpu(rec->rhdr.fix_off); in check_file_record()
2789 u16 fn = le16_to_cpu(rec->rhdr.fix_num); in check_file_record()
2794 if (rec->rhdr.sign != NTFS_FILE_SIGNATURE || in check_file_record()
3113 if (rec->rhdr.sign == NTFS_BAAD_SIGNATURE) in do_action()
3115 if (!check_lsn(&rec->rhdr, rlsn)) in do_action()
3519 if (is_baad(&ib->rhdr)) in do_action()
3521 if (!check_lsn(&ib->rhdr, rlsn)) in do_action()
3541 ntfs_fix_pre_write(&ib->rhdr, bytes); in do_action()
3550 if (is_baad(&ib->rhdr)) in do_action()
3552 if (!check_lsn(&ib->rhdr, rlsn)) in do_action()
3570 ntfs_fix_pre_write(&ib->rhdr, bytes); in do_action()
3578 if (is_baad(&ib->rhdr)) in do_action()
3580 if (!check_lsn(&ib->rhdr, rlsn)) in do_action()
3593 ntfs_fix_pre_write(&ib->rhdr, bytes); in do_action()
3601 if (is_baad(&ib->rhdr)) in do_action()
3604 if (!check_lsn(&ib->rhdr, rlsn)) in do_action()
3614 ntfs_fix_pre_write(&ib->rhdr, bytes); in do_action()
3622 if (is_baad(&ib->rhdr)) in do_action()
3625 if (!check_lsn(&ib->rhdr, rlsn)) in do_action()
3636 ntfs_fix_pre_write(&ib->rhdr, bytes); in do_action()
3672 if (is_baad(&ib->rhdr)) in do_action()
3675 if (!check_lsn(&ib->rhdr, rlsn)) in do_action()
3685 ntfs_fix_pre_write(&ib->rhdr, bytes); in do_action()
3696 rec->rhdr.lsn = t64; in do_action()
3698 ib->rhdr.lsn = t64; in do_action()
3858 sp->rhdr.sign == NTFS_CHKD_SIGNATURE) { in log_replay()
5127 rh->rhdr.sign = NTFS_RSTR_SIGNATURE; in log_replay()
5128 rh->rhdr.fix_off = cpu_to_le16(offsetof(struct RESTART_HDR, fixups)); in log_replay()
5130 rh->rhdr.fix_num = cpu_to_le16(t16); in log_replay()
5149 ntfs_fix_pre_write(&rh->rhdr, log->page_size); in log_replay()