- LASSERT(nidtbl_is_sane(tbl));
-
- /* no more entries ? */
- if (version > tbl->mn_version) {
- version = tbl->mn_version;
- goto out;
- }
-
- /* iterate over all targets to compose a bitmap by the type of llog.
- * If the llog is for MDTs, llog entries for OSTs will be returned;
- * otherwise, it's for clients, then llog entries for both OSTs and
- * MDTs will be returned.
- */
- cfs_list_for_each_entry(tgt, &tbl->mn_targets, mnt_list) {
- int entry_len = sizeof(*entry);
-
- if (tgt->mnt_version < version)
- continue;
-
- /* write target recover information */
- mti = &tgt->mnt_mti;
- LASSERT(mti->mti_nid_count < MTI_NIDS_MAX);
- entry_len += mti->mti_nid_count * sizeof(lnet_nid_t);
-
- if (entry_len > unit_size) {
- CWARN("nidtbl: too large entry: entry length %d,"
- "unit size: %d\n", entry_len, unit_size);
- GOTO(out, rc = -EOVERFLOW);
- }
-
- if (bytes_in_unit < entry_len) {
- if (units_total == 0) {
- nobuf = true;
- break;
- }
-
- /* check if we need to consume remaining bytes. */
- if (last_in_unit != NULL && bytes_in_unit) {
-#if LUSTRE_VERSION_CODE < OBD_OCD_VERSION(2, 6, 50, 0)
- /* May need to swab back to update the length.*/
- if (exp->exp_need_mne_swab)
- lustre_swab_mgs_nidtbl_entry(last_in_unit);
-#endif
+ LASSERT(nidtbl_is_sane(tbl));
+
+ /* no more entries ? */
+ if (version > tbl->mn_version) {
+ version = tbl->mn_version;
+ goto out;
+ }
+
+ /*
+ * iterate over all targets to compose a bitmap by the type of llog.
+ * If the llog is for MDTs, llog entries for OSTs will be returned;
+ * otherwise, it's for clients, then llog entries for both OSTs and
+ * MDTs will be returned.
+ */
+ list_for_each_entry(tgt, &tbl->mn_targets, mnt_list) {
+ int entry_len = sizeof(*entry);
+
+ if (tgt->mnt_version < version)
+ continue;
+
+ /* write target recover information */
+ mti = &tgt->mnt_mti;
+ LASSERT(mti->mti_nid_count < MTI_NIDS_MAX);
+ entry_len += mti->mti_nid_count * sizeof(lnet_nid_t);
+
+ if (entry_len > unit_size) {
+ CWARN("nidtbl: too large entry: entry length %d, unit size: %d\n",
+ entry_len, unit_size);
+ GOTO(out, rc = -EOVERFLOW);
+ }
+
+ if (bytes_in_unit < entry_len) {
+ if (units_total == 0) {
+ nobuf = true;
+ break;
+ }
+
+ /* check if we need to consume remaining bytes. */
+ if (last_in_unit && bytes_in_unit) {