Whamcloud - gitweb
LU-3365 lmv: support DNE with HSM.
[fs/lustre-release.git] / lustre / obdclass / md_attrs.c
index 7d5364a..6a001f0 100644 (file)
@@ -21,7 +21,7 @@
  * GPL HEADER END
  */
 /*
- * Copyright (c) 2012, Intel Corporation.
+ * Copyright (c) 2012, 2013, Intel Corporation.
  * Use is subject to license terms.
  *
  * Author: Johann Lombardi <johann.lombardi@intel.com>
@@ -44,13 +44,12 @@ void lustre_lma_init(struct lustre_mdt_attrs *lma, const struct lu_fid *fid,
        lma->lma_compat   = 0;
        lma->lma_incompat = incompat;
        lma->lma_self_fid = *fid;
-       lma->lma_flags = 0;
 
        /* If a field is added in struct lustre_mdt_attrs, zero it explicitly
         * and change the test below. */
        LASSERT(sizeof(*lma) ==
-               (offsetof(struct lustre_mdt_attrs, lma_flags) +
-                sizeof(lma->lma_flags)));
+               (offsetof(struct lustre_mdt_attrs, lma_self_fid) +
+                sizeof(lma->lma_self_fid)));
 };
 EXPORT_SYMBOL(lustre_lma_init);
 
@@ -66,7 +65,6 @@ void lustre_lma_swab(struct lustre_mdt_attrs *lma)
                __swab32s(&lma->lma_compat);
                __swab32s(&lma->lma_incompat);
                lustre_swab_lu_fid(&lma->lma_self_fid);
-               __swab64s(&lma->lma_flags);
        }
 };
 EXPORT_SYMBOL(lustre_lma_swab);