Lines Matching refs:ri

417 					      struct nilfs_recovery_info *ri)  in nilfs_prepare_segment_for_recovery()  argument
419 struct list_head *head = &ri->ri_used_segments; in nilfs_prepare_segment_for_recovery()
428 segnum[2] = ri->ri_segnum; in nilfs_prepare_segment_for_recovery()
429 segnum[3] = ri->ri_nextnum; in nilfs_prepare_segment_for_recovery()
465 nilfs->ns_seg_seq = ri->ri_seq + 2; in nilfs_prepare_segment_for_recovery()
570 struct nilfs_recovery_info *ri) in nilfs_do_roll_forward() argument
589 pseg_start = ri->ri_lsegs_start; in nilfs_do_roll_forward()
590 seg_seq = ri->ri_lsegs_start_seq; in nilfs_do_roll_forward()
594 while (segnum != ri->ri_segnum || pseg_start <= ri->ri_pseg_start) { in nilfs_do_roll_forward()
650 if (pseg_start == ri->ri_lsegs_end) in nilfs_do_roll_forward()
658 if (pseg_start == ri->ri_lsegs_end) in nilfs_do_roll_forward()
673 ri->ri_need_recovery = NILFS_RECOVERY_ROLLFORWARD_DONE; in nilfs_do_roll_forward()
690 struct nilfs_recovery_info *ri) in nilfs_finish_roll_forward() argument
695 if (nilfs_get_segnum_of_block(nilfs, ri->ri_lsegs_start) != in nilfs_finish_roll_forward()
696 nilfs_get_segnum_of_block(nilfs, ri->ri_super_root)) in nilfs_finish_roll_forward()
699 bh = __getblk(nilfs->ns_bdev, ri->ri_lsegs_start, nilfs->ns_blocksize); in nilfs_finish_roll_forward()
731 struct nilfs_recovery_info *ri) in nilfs_salvage_orphan_logs() argument
736 if (ri->ri_lsegs_start == 0 || ri->ri_lsegs_end == 0) in nilfs_salvage_orphan_logs()
739 err = nilfs_attach_checkpoint(sb, ri->ri_cno, true, &root); in nilfs_salvage_orphan_logs()
745 err = nilfs_do_roll_forward(nilfs, sb, root, ri); in nilfs_salvage_orphan_logs()
749 if (ri->ri_need_recovery == NILFS_RECOVERY_ROLLFORWARD_DONE) { in nilfs_salvage_orphan_logs()
750 err = nilfs_prepare_segment_for_recovery(nilfs, sb, ri); in nilfs_salvage_orphan_logs()
771 nilfs_finish_roll_forward(nilfs, ri); in nilfs_salvage_orphan_logs()
798 struct nilfs_recovery_info *ri) in nilfs_search_super_root() argument
849 ri->ri_pseg_start = pseg_start; in nilfs_search_super_root()
850 ri->ri_seq = seg_seq; in nilfs_search_super_root()
851 ri->ri_segnum = segnum; in nilfs_search_super_root()
854 ri->ri_nextnum = nextnum; in nilfs_search_super_root()
875 if (!ri->ri_lsegs_start && (flags & NILFS_SS_LOGBGN)) { in nilfs_search_super_root()
876 ri->ri_lsegs_start = pseg_start; in nilfs_search_super_root()
877 ri->ri_lsegs_start_seq = seg_seq; in nilfs_search_super_root()
880 ri->ri_lsegs_end = pseg_start; in nilfs_search_super_root()
885 ri->ri_cno = cno++; in nilfs_search_super_root()
886 ri->ri_super_root = pseg_end; in nilfs_search_super_root()
887 ri->ri_lsegs_start = ri->ri_lsegs_end = 0; in nilfs_search_super_root()
899 ri->ri_need_recovery = NILFS_RECOVERY_SR_UPDATED; in nilfs_search_super_root()
940 list_splice_tail(&segments, &ri->ri_used_segments); in nilfs_search_super_root()
943 nilfs->ns_last_cno = ri->ri_cno; in nilfs_search_super_root()