Lines Matching refs:replay_map
99 if (!osb->replay_map) in ocfs2_replay_map_set_state()
103 if (osb->replay_map->rm_state == REPLAY_DONE) in ocfs2_replay_map_set_state()
106 osb->replay_map->rm_state = state; in ocfs2_replay_map_set_state()
111 struct ocfs2_replay_map *replay_map; in ocfs2_compute_replay_slots() local
115 if (osb->replay_map) in ocfs2_compute_replay_slots()
118 replay_map = kzalloc(sizeof(struct ocfs2_replay_map) + in ocfs2_compute_replay_slots()
121 if (!replay_map) { in ocfs2_compute_replay_slots()
128 replay_map->rm_slots = osb->max_slots; in ocfs2_compute_replay_slots()
129 replay_map->rm_state = REPLAY_UNNEEDED; in ocfs2_compute_replay_slots()
132 for (i = 0; i < replay_map->rm_slots; i++) { in ocfs2_compute_replay_slots()
134 replay_map->rm_replay_slots[i] = 1; in ocfs2_compute_replay_slots()
137 osb->replay_map = replay_map; in ocfs2_compute_replay_slots()
145 struct ocfs2_replay_map *replay_map = osb->replay_map; in ocfs2_queue_replay_slots() local
148 if (!replay_map) in ocfs2_queue_replay_slots()
151 if (replay_map->rm_state != REPLAY_NEEDED) in ocfs2_queue_replay_slots()
154 for (i = 0; i < replay_map->rm_slots; i++) in ocfs2_queue_replay_slots()
155 if (replay_map->rm_replay_slots[i]) in ocfs2_queue_replay_slots()
159 replay_map->rm_state = REPLAY_DONE; in ocfs2_queue_replay_slots()
164 struct ocfs2_replay_map *replay_map = osb->replay_map; in ocfs2_free_replay_slots() local
166 if (!osb->replay_map) in ocfs2_free_replay_slots()
169 kfree(replay_map); in ocfs2_free_replay_slots()
170 osb->replay_map = NULL; in ocfs2_free_replay_slots()