Whamcloud - gitweb
LU-12923 lustre: Replace CLASSERT() with BUILD_BUG_ON()
[fs/lustre-release.git] / lustre / osd-ldiskfs / osd_iam_lvar.c
index 38943f3..031cd33 100644 (file)
@@ -111,7 +111,7 @@ enum {
 
 static inline int getsize(const struct iam_leaf *leaf, int namelen, int recsize)
 {
-       CLASSERT(!(LVAR_PAD & (LVAR_PAD - 1)));
+       BUILD_BUG_ON((LVAR_PAD & (LVAR_PAD - 1)));
 
        return (offsetof(struct lvar_leaf_entry, vle_key) +
                        namelen + recsize + LVAR_ROUND) & ~LVAR_ROUND;