X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fobdclass%2Fmd_attrs.c;h=f996438327518c2b7a092f1ed615b48d0c41c8a2;hb=11317196203c26f8c9e4d2a8261859b1c7a76c9d;hp=6a001f064cbb7104b2e7e76559bee0efffc6422c;hpb=98060d83459ba10409f295898f0ec917f938b4d3;p=fs%2Flustre-release.git diff --git a/lustre/obdclass/md_attrs.c b/lustre/obdclass/md_attrs.c index 6a001f0..f996438 100644 --- a/lustre/obdclass/md_attrs.c +++ b/lustre/obdclass/md_attrs.c @@ -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; @@ -185,7 +185,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;