Lines Matching refs:ra
147 RESTART_AREA *ra;
153 ra = (RESTART_AREA*)((u8*)rp + ra_ofs);
155 * Everything before ra->file_size must be before the first word
157 * safe to access ra->client_array_offset.
166 * Now that we can access ra->client_array_offset, make sure everything
172 ca_ofs = le16_to_cpu(ra->client_array_offset);
181 * calculated manually and as specified by ra->restart_area_length.
184 ra_len = ca_ofs + le16_to_cpu(ra->log_clients) *
187 ra_ofs + le16_to_cpu(ra->restart_area_length) >
189 ra_len > le16_to_cpu(ra->restart_area_length)) {
197 * The ra->client_free_list and ra->client_in_use_list must be either
198 * LOGFILE_NO_CLIENT or less than ra->log_clients or they are
201 if ((ra->client_free_list != LOGFILE_NO_CLIENT &&
202 le16_to_cpu(ra->client_free_list) >=
203 le16_to_cpu(ra->log_clients)) ||
204 (ra->client_in_use_list != LOGFILE_NO_CLIENT &&
205 le16_to_cpu(ra->client_in_use_list) >=
206 le16_to_cpu(ra->log_clients))) {
212 * Check ra->seq_number_bits against ra->file_size for consistency.
215 file_size = (u64)sle64_to_cpu(ra->file_size);
221 if (le32_to_cpu(ra->seq_number_bits) != 67 - fs_bits) {
227 if (((le16_to_cpu(ra->log_record_header_length) + 7) & ~7) !=
228 le16_to_cpu(ra->log_record_header_length)) {
234 if (((le16_to_cpu(ra->log_page_data_offset) + 7) & ~7) !=
235 le16_to_cpu(ra->log_page_data_offset)) {
262 RESTART_AREA *ra;
268 ra = (RESTART_AREA*)((u8*)rp + le16_to_cpu(rp->restart_area_offset));
269 ca = (LOG_CLIENT_RECORD*)((u8*)ra +
270 le16_to_cpu(ra->client_array_offset));
272 * Check the ra->client_free_list first and then check the
273 * ra->client_in_use_list. Check each of the log client records in
275 * ra->log_clients value. Also keep track of the number of records
276 * visited as there cannot be more than ra->log_clients records and
279 nr_clients = le16_to_cpu(ra->log_clients);
280 idx = le16_to_cpu(ra->client_free_list);
285 if (!nr_clients || idx >= le16_to_cpu(ra->log_clients))
299 idx = le16_to_cpu(ra->client_in_use_list);
340 RESTART_AREA *ra;
355 ra = (RESTART_AREA*)((u8*)rp + le16_to_cpu(rp->restart_area_offset));
417 le16_to_cpu(ra->restart_area_length) >
432 ra->client_in_use_list != LOGFILE_NO_CLIENT) {
440 *lsn = sle64_to_cpu(ra->current_lsn);
669 RESTART_AREA *ra;
686 ra = (RESTART_AREA*)((u8*)rp + le16_to_cpu(rp->restart_area_offset));
692 if (ra->client_in_use_list != LOGFILE_NO_CLIENT &&
693 !(ra->flags & RESTART_VOLUME_IS_CLEAN)) {