Whamcloud - gitweb
LU-10565 osd: unify interface for vfs
[fs/lustre-release.git] / lustre / obdclass / md_attrs.c
index 8500393..c65a645 100644 (file)
  * GPL HEADER END
  */
 /*
- * Copyright (c) 2012, 2016, Intel Corporation.
+ * Copyright (c) 2012, 2017, Intel Corporation.
  * Use is subject to license terms.
  *
  * Author: Johann Lombardi <johann.lombardi@intel.com>
  */
-
-#include <lustre/lustre_idl.h>
-
 #include <llog_swab.h>
 #include <lustre_swab.h>
 #include <obd.h>
@@ -50,9 +47,9 @@ void lustre_lma_init(struct lustre_mdt_attrs *lma, const struct lu_fid *fid,
 
        /* 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_self_fid) +
-                sizeof(lma->lma_self_fid)));
+       CLASSERT(sizeof(*lma) ==
+                (offsetof(struct lustre_mdt_attrs, lma_self_fid) +
+                 sizeof(lma->lma_self_fid)));
 }
 EXPORT_SYMBOL(lustre_lma_init);