From: bobijam Date: Mon, 18 May 2009 08:26:01 +0000 (+0000) Subject: Branch b_release_1_8_1 X-Git-Tag: v1_8_0_120~36 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=bb64883a78bd0d5dd083862932554b62fc739ed6;p=fs%2Flustre-release.git Branch b_release_1_8_1 b=19478 i=adilger i=sheng.yang Fix last commit's overkill. --- diff --git a/lustre/lov/lov_ea.c b/lustre/lov/lov_ea.c index fcccec0..355c93e 100755 --- a/lustre/lov/lov_ea.c +++ b/lustre/lov/lov_ea.c @@ -85,11 +85,11 @@ static int lsm_lmm_verify_common(struct lov_mds_md *lmm, int lmm_bytes, } if (lmm->lmm_stripe_size == 0 || - (stripe_count != -1 && - (le32_to_cpu(lmm->lmm_stripe_size)&(LOV_MIN_STRIPE_SIZE-1)) != 0)){ + (le32_to_cpu(lmm->lmm_stripe_size)&(LOV_MIN_STRIPE_SIZE-1)) != 0) { CERROR("bad stripe size %u\n", le32_to_cpu(lmm->lmm_stripe_size)); - lov_dump_lmm(D_WARNING, lmm); + if (stripe_count != -1) + lov_dump_lmm(D_WARNING, lmm); return -EINVAL; } return 0;