Lines Matching defs:ra

172 	RESTART_AREA *ra;
178 ra = (RESTART_AREA*)((u8*)rp + ra_ofs);
180 * Everything before ra->file_size must be before the first word
182 * safe to access ra->client_array_offset.
191 * Now that we can access ra->client_array_offset, make sure everything
197 ca_ofs = le16_to_cpu(ra->client_array_offset);
207 * calculated manually and as specified by ra->restart_area_length.
210 ra_len = ca_ofs + le16_to_cpu(ra->log_clients) *
213 (u32)(ra_ofs + le16_to_cpu(ra->restart_area_length)) >
215 ra_len > le16_to_cpu(ra->restart_area_length)) {
223 * The ra->client_free_list and ra->client_in_use_list must be either
224 * LOGFILE_NO_CLIENT or less than ra->log_clients or they are
227 if ((ra->client_free_list != LOGFILE_NO_CLIENT &&
228 le16_to_cpu(ra->client_free_list) >=
229 le16_to_cpu(ra->log_clients)) ||
230 (ra->client_in_use_list != LOGFILE_NO_CLIENT &&
231 le16_to_cpu(ra->client_in_use_list) >=
232 le16_to_cpu(ra->log_clients))) {
238 * Check ra->seq_number_bits against ra->file_size for consistency.
241 file_size = (u64)sle64_to_cpu(ra->file_size);
247 if (le32_to_cpu(ra->seq_number_bits) != (u32)(67 - fs_bits)) {
253 if (((le16_to_cpu(ra->log_record_header_length) + 7) & ~7) !=
254 le16_to_cpu(ra->log_record_header_length)) {
260 if (((le16_to_cpu(ra->log_page_data_offset) + 7) & ~7) !=
261 le16_to_cpu(ra->log_page_data_offset)) {
286 RESTART_AREA *ra;
297 ra = (RESTART_AREA*)((u8*)rp + le16_to_cpu(rp->restart_area_offset));
299 + le16_to_cpu(ra->client_array_offset);
303 ca = (LOG_CLIENT_RECORD*)((u8*)ra +
304 le16_to_cpu(ra->client_array_offset));
306 * Check the ra->client_free_list first and then check the
307 * ra->client_in_use_list. Check each of the log client records in
309 * ra->log_clients value. Also keep track of the number of records
310 * visited as there cannot be more than ra->log_clients records and
313 nr_clients = le16_to_cpu(ra->log_clients);
314 idx = le16_to_cpu(ra->client_free_list);
319 if (!nr_clients || idx >= le16_to_cpu(ra->log_clients))
337 idx = le16_to_cpu(ra->client_in_use_list);
378 RESTART_AREA *ra;
393 ra = (RESTART_AREA*)((u8*)rp + le16_to_cpu(rp->restart_area_offset));
438 le16_to_cpu(ra->restart_area_length) >
453 ra->client_in_use_list != LOGFILE_NO_CLIENT) {
461 *lsn = sle64_to_cpu(ra->current_lsn);
681 RESTART_AREA *ra;
699 ra = (RESTART_AREA*)((u8*)rp + le16_to_cpu(rp->restart_area_offset));
705 if (ra->client_in_use_list != LOGFILE_NO_CLIENT &&
706 !(ra->flags & RESTART_VOLUME_IS_CLEAN)) {
708 "%d).\n", le16_to_cpu(ra->client_in_use_list),
709 le16_to_cpu(ra->flags));