Lines Matching refs:replay_map
113 if (!osb->replay_map) in ocfs2_replay_map_set_state()
117 if (osb->replay_map->rm_state == REPLAY_DONE) in ocfs2_replay_map_set_state()
120 osb->replay_map->rm_state = state; in ocfs2_replay_map_set_state()
125 struct ocfs2_replay_map *replay_map; in ocfs2_compute_replay_slots() local
129 if (osb->replay_map) in ocfs2_compute_replay_slots()
132 replay_map = kzalloc(sizeof(struct ocfs2_replay_map) + in ocfs2_compute_replay_slots()
135 if (!replay_map) { in ocfs2_compute_replay_slots()
142 replay_map->rm_slots = osb->max_slots; in ocfs2_compute_replay_slots()
143 replay_map->rm_state = REPLAY_UNNEEDED; in ocfs2_compute_replay_slots()
146 for (i = 0; i < replay_map->rm_slots; i++) { in ocfs2_compute_replay_slots()
148 replay_map->rm_replay_slots[i] = 1; in ocfs2_compute_replay_slots()
151 osb->replay_map = replay_map; in ocfs2_compute_replay_slots()
159 struct ocfs2_replay_map *replay_map = osb->replay_map; in ocfs2_queue_replay_slots() local
162 if (!replay_map) in ocfs2_queue_replay_slots()
165 if (replay_map->rm_state != REPLAY_NEEDED) in ocfs2_queue_replay_slots()
168 for (i = 0; i < replay_map->rm_slots; i++) in ocfs2_queue_replay_slots()
169 if (replay_map->rm_replay_slots[i]) in ocfs2_queue_replay_slots()
173 replay_map->rm_state = REPLAY_DONE; in ocfs2_queue_replay_slots()
178 struct ocfs2_replay_map *replay_map = osb->replay_map; in ocfs2_free_replay_slots() local
180 if (!osb->replay_map) in ocfs2_free_replay_slots()
183 kfree(replay_map); in ocfs2_free_replay_slots()
184 osb->replay_map = NULL; in ocfs2_free_replay_slots()