From d41716533682ed88b8a77654f9b5b050ef5c672c Mon Sep 17 00:00:00 2001 From: Li Dongyang Date: Mon, 10 Feb 2020 15:32:58 +1100 Subject: [PATCH] LU-12580 lov: fix typo in lov_comp_md_size If the component of a PFL file is not initialized, we should use 0 as the stripe size when calculating the LOVEA size. Change-Id: I4ff5f4a78bc1d432cc1ac6fa3733461bd6b762e6 Fixes: 62f64a1077 ("LU-9489 lod: keep minimum LOVEA size") Signed-off-by: Li Dongyang Reviewed-on: https://review.whamcloud.com/37493 Reviewed-by: Jian Yu Tested-by: jenkins Reviewed-by: Bobi Jam Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/lov/lov_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/lov/lov_internal.h b/lustre/lov/lov_internal.h index ae80402..8e47092 100644 --- a/lustre/lov/lov_internal.h +++ b/lustre/lov/lov_internal.h @@ -137,7 +137,7 @@ static inline size_t lov_comp_md_size(const struct lov_stripe_md *lsm) stripe_count = 0; size += sizeof(*lsme); - size += lov_mds_md_size(lsme->lsme_stripe_count, + size += lov_mds_md_size(stripe_count, lsme->lsme_magic); } -- 1.8.3.1