Whamcloud - gitweb
LU-5051 hsm: do not reallocate hsm receive buffer
[fs/lustre-release.git] / lustre / obdclass / llog_swab.c
index f509874..150921a 100644 (file)
@@ -72,7 +72,8 @@ EXPORT_SYMBOL(lustre_swab_lu_fid);
 
 void lustre_swab_ost_id(struct ost_id *oid)
 {
-       if (fid_seq_is_mdt0(oid->oi.oi_seq)) {
+       if (fid_seq_is_mdt0(oid->oi.oi_seq) ||
+           fid_seq_is_default(oid->oi.oi_seq)) {
                __swab64s(&oid->oi.oi_id);
                __swab64s(&oid->oi.oi_seq);
        } else {
@@ -82,7 +83,7 @@ void lustre_swab_ost_id(struct ost_id *oid)
 EXPORT_SYMBOL(lustre_swab_ost_id);
 
 void lustre_swab_llog_id(struct llog_logid *log_id)
-{ 
+{
        __swab64s(&log_id->lgl_oi.oi.oi_id);
        __swab64s(&log_id->lgl_oi.oi.oi_seq);
         __swab32s(&log_id->lgl_ogen);
@@ -233,6 +234,7 @@ void lustre_swab_llog_rec(struct llog_rec_hdr *rec)
                __swab32s(&lsr->lsr_uid_h);
                __swab32s(&lsr->lsr_gid);
                __swab32s(&lsr->lsr_gid_h);
+               __swab64s(&lsr->lsr_valid);
                tail = &lsr->lsr_tail;
                break;
         }