From: Bobi Jam Date: Sat, 2 Sep 2017 08:34:23 +0000 (+0800) Subject: LU-9941 lov: lsm_is_composite isn't right X-Git-Tag: 2.10.2-RC2~3 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F42%2F30342%2F2;p=fs%2Flustre-release.git LU-9941 lov: lsm_is_composite isn't right LOVEA magic containing LOV_MAGIC_MAGIC will also be regarded as a composite magic. Signed-off-by: Bobi Jam Change-Id: I3ef37ee80364b2a8f27831e3c53fb88b464f2039 Reviewed-on: https://review.whamcloud.com/28845 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Jinshan Xiong Reviewed-by: Fan Yong Reviewed-by: Oleg Drokin (cherry picked from commit 385518f67eb917335de0c1d727941094f4ab5874) Reviewed-on: https://review.whamcloud.com/30342 Reviewed-by: Andreas Dilger Reviewed-by: Bobi Jam --- diff --git a/lustre/lov/lov_internal.h b/lustre/lov/lov_internal.h index 6f74868..9445709 100644 --- a/lustre/lov/lov_internal.h +++ b/lustre/lov/lov_internal.h @@ -92,7 +92,7 @@ static inline bool lsm_entry_inited(const struct lov_stripe_md *lsm, int index) static inline bool lsm_is_composite(__u32 magic) { - return !!(magic & LOV_MAGIC_COMP_V1); + return magic == LOV_MAGIC_COMP_V1; } static inline size_t lov_comp_md_size(const struct lov_stripe_md *lsm)