Skip to content

Commit

Permalink
LU-9941 lov: lsm_is_composite isn't right
Browse files Browse the repository at this point in the history
LOVEA magic containing LOV_MAGIC_MAGIC will also be regarded as
a composite magic.

Signed-off-by: Bobi Jam <bobijam.xu@intel.com>
Change-Id: I3ef37ee80364b2a8f27831e3c53fb88b464f2039
Reviewed-on: https://review.whamcloud.com/28845
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
(cherry picked from commit 385518f)
Reviewed-on: https://review.whamcloud.com/30342
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
  • Loading branch information
Bobi Jam authored and jhammond-intel committed Dec 6, 2017
1 parent 5e7fe37 commit 6ec70b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lustre/lov/lov_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6ec70b0

Please sign in to comment.