Lines Matching refs:rh

1469 static int next_log_lsn(struct ntfs_log *log, const struct LFS_RECORD_HDR *rh,  in next_log_lsn()  argument
1473 u64 this_lsn = le64_to_cpu(rh->this_lsn); in next_log_lsn()
1476 final_log_off(log, this_lsn, le32_to_cpu(rh->client_data_len)); in next_log_lsn()
2255 const struct LFS_RECORD_HDR *rh, void *buffer) in read_log_rec_buf() argument
2259 u64 lsn = le64_to_cpu(rh->this_lsn); in read_log_rec_buf()
2262 u32 data_len = le32_to_cpu(rh->client_data_len); in read_log_rec_buf()
2327 struct LFS_RECORD_HDR *rh = NULL; in read_rst_area() local
2342 (struct RECORD_PAGE_HDR **)&rh, NULL); in read_rst_area()
2347 lsnr = le64_to_cpu(rh->this_lsn); in read_rst_area()
2356 len = le32_to_cpu(rh->client_data_len); in read_rst_area()
2375 err = read_log_rec_buf(log, rh, rst); in read_rst_area()
2383 kfree(rh); in read_rst_area()
2392 struct LFS_RECORD_HDR *rh = lcb->lrh; in find_log_rec() local
2396 if (!rh) { in find_log_rec()
2398 (struct RECORD_PAGE_HDR **)&rh, NULL); in find_log_rec()
2400 lcb->lrh = rh; in find_log_rec()
2409 if (lsn != le64_to_cpu(rh->this_lsn)) in find_log_rec()
2412 len = le32_to_cpu(rh->client_data_len); in find_log_rec()
2426 if (rh->flags & LOG_RECORD_MULTI_PAGE) { in find_log_rec()
2436 err = read_log_rec_buf(log, rh, lr); in find_log_rec()
2446 lcb->log_rec = Add2Ptr(rh, sizeof(struct LFS_RECORD_HDR)); in find_log_rec()
3772 struct RESTART_HDR *rh; in log_replay() local
5121 rh = kzalloc(log->page_size, GFP_NOFS); in log_replay()
5122 if (!rh) { 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()
5131 rh->sys_page_size = cpu_to_le32(log->page_size); in log_replay()
5132 rh->page_size = cpu_to_le32(log->page_size); in log_replay()
5136 rh->ra_off = cpu_to_le16(t16); in log_replay()
5137 rh->minor_ver = cpu_to_le16(1); // 0x1A: in log_replay()
5138 rh->major_ver = cpu_to_le16(1); // 0x1C: in log_replay()
5140 ra2 = Add2Ptr(rh, t16); in log_replay()
5149 ntfs_fix_pre_write(&rh->rhdr, log->page_size); in log_replay()
5151 err = ntfs_sb_write_run(sbi, &ni->file.run, 0, rh, log->page_size, 0); in log_replay()
5154 rh, log->page_size, 0); in log_replay()
5156 kfree(rh); in log_replay()