Whamcloud - gitweb
LU-5814 llite: remove lli_has_smd
[fs/lustre-release.git] / lustre / obdclass / md_attrs.c
index 6a001f0..c82e7f9 100644 (file)
@@ -39,9 +39,9 @@
  * \param incompat - features that MDS must understand to access object
  */
 void lustre_lma_init(struct lustre_mdt_attrs *lma, const struct lu_fid *fid,
-                    __u32 incompat)
+                    __u32 compat, __u32 incompat)
 {
-       lma->lma_compat   = 0;
+       lma->lma_compat   = compat;
        lma->lma_incompat = incompat;
        lma->lma_self_fid = *fid;
 
@@ -144,7 +144,6 @@ void lustre_hsm_swab(struct hsm_attrs *attrs)
                __swab64s(&attrs->hsm_arch_ver);
        }
 };
-EXPORT_SYMBOL(lustre_hsm_swab);
 
 /*
  * Swab and extract HSM attributes from on-disk xattr.
@@ -185,7 +184,7 @@ EXPORT_SYMBOL(lustre_buf2hsm);
  * \param buf - is the output buffer where to pack the on-disk HSM xattr.
  * \param mh  - is the md_hsm structure to pack.
  */
-void lustre_hsm2buf(void *buf, struct md_hsm *mh)
+void lustre_hsm2buf(void *buf, const struct md_hsm *mh)
 {
        struct hsm_attrs *attrs = (struct hsm_attrs *)buf;
        ENTRY;