Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-9859 mdt: replace CLASSERT with BUILD_BUG_ON
[fs/lustre-release.git]
/
lustre
/
mdt
/
mdt_coordinator.c
diff --git
a/lustre/mdt/mdt_coordinator.c
b/lustre/mdt/mdt_coordinator.c
index
25dddf5
..
723924d
100644
(file)
--- a/
lustre/mdt/mdt_coordinator.c
+++ b/
lustre/mdt/mdt_coordinator.c
@@
-1091,7
+1091,7
@@
static int mdt_hsm_cdt_start(struct mdt_device *mdt)
RETURN(-EALREADY);
}
-
CLASSERT(1 << (CDT_POLICY_SHIFT_COUNT - 1) =
= CDT_POLICY_LAST);
+
BUILD_BUG_ON(BIT(CDT_POLICY_SHIFT_COUNT - 1) !
= CDT_POLICY_LAST);
cdt->cdt_policy = CDT_DEFAULT_POLICY;
/* just need to be larger than previous one */