Lines Matching refs:vbo
911 static inline void *alloc_rsttbl_from_idx(struct RESTART_TABLE **tbl, u32 vbo) in alloc_rsttbl_from_idx() argument
920 if (vbo >= bytes) { in alloc_rsttbl_from_idx()
925 u32 bytes2idx = vbo - bytes; in alloc_rsttbl_from_idx()
937 e = Add2Ptr(rt, vbo); in alloc_rsttbl_from_idx()
949 if (off == vbo) { in alloc_rsttbl_from_idx()
971 if (off == vbo) { in alloc_rsttbl_from_idx()
1001 u32 vbo; member
1081 u32 vbo = (lsn << log->seq_num_bits) >> (log->seq_num_bits - 3); in lsn_to_vbo() local
1083 return vbo; in lsn_to_vbo()
1142 static int read_log_page(struct ntfs_log *log, u32 vbo, in read_log_page() argument
1146 u32 page_idx = vbo >> log->page_bits; in read_log_page()
1147 u32 page_off = vbo & log->page_mask; in read_log_page()
1155 if (vbo >= log->l_size) in read_log_page()
1207 u64 vbo; in log_read_rst() local
1212 vbo = 0; in log_read_rst()
1215 vbo = 512; in log_read_rst()
1220 for (; vbo < log->l_size; vbo = 2 * vbo + skip, skip = 0) { in log_read_rst()
1226 if (read_log_page(log, vbo, (struct RECORD_PAGE_HDR **)&r_page, in log_read_rst()
1255 info->vbo = vbo; in log_read_rst()
1258 if (!is_rst_page_hdr_valid(vbo, r_page)) in log_read_rst()
1469 u32 vbo = lsn_to_vbo(log, this_lsn); in next_log_lsn() local
1477 if (end <= vbo) in next_log_lsn()
1497 vbo = hdr_off + log->data_off; in next_log_lsn()
1499 vbo = ALIGN(end, 8); in next_log_lsn()
1503 *lsn = vbo_to_lsn(log, vbo, seq); in next_log_lsn()
1565 const struct RECORD_PAGE_HDR *rp, u32 vbo, in check_subseq_log_page() argument
1586 (lsn_seq == seq - 1 && log->first_page == vbo && in check_subseq_log_page()
1587 vbo != (lsn_to_vbo(log, lsn) & ~log->page_mask)); in check_subseq_log_page()
2256 u32 vbo = lsn_to_vbo(log, lsn) & ~log->page_mask; in read_log_rec_buf() local
2273 err = read_log_page(log, vbo, &ph, &usa_error); in read_log_rec_buf()
2304 vbo = next_page_off(log, vbo); in read_log_rec_buf()
3062 u64 vbo = cbo + tvo; in do_action() local
3090 rno = vbo >> sbi->record_bits; in do_action()
3192 err = ntfs_read_run_nb(sbi, oa->run1, vbo, buffer_le, bytes, in do_action()
3707 err = ntfs_sb_write_run(sbi, oa->run1, vbo, buffer_le, bytes, in do_action()
3764 u32 vbo, tail, off, dlen; in log_replay() local
3839 if (log->rst_info.vbo) in log_replay()
3854 log->page_size != log->rst_info.vbo) { in log_replay()
3880 log->init_ra = !!log->rst_info.vbo; in log_replay()
3966 vbo = lsn_to_vbo(log, log->last_lsn); in log_replay()
3968 if (vbo < log->first_page) { in log_replay()
3980 if (off <= vbo) { in log_replay()
3986 vbo &= ~log->sys_page_mask; in log_replay()
3995 log->next_page = vbo; in log_replay()
3997 log->next_page = next_page_off(log, vbo); in log_replay()
4058 log->init_ra = log->rst_info.vbo; in log_replay()