diff --git a/lustre/lov/lov_pack.c b/lustre/lov/lov_pack.c index 904817ed9c49a9f3a7db751c1a08e503770cd120..7d1d552f55b770811e1337752abb555060074709 100644 --- a/lustre/lov/lov_pack.c +++ b/lustre/lov/lov_pack.c @@ -184,7 +184,7 @@ int lov_packmd(struct obd_export *exp, struct lov_mds_md **lmmp, * Anyway, this is pretty inaccurate since ld_tgt_count now * represents max index and we should rely on the actual number * of OSTs instead */ - stripe_count = min(LOV_MAX_STRIPE_COUNT, + stripe_count = min((__u32)LOV_MAX_STRIPE_COUNT, lov->desc.ld_tgt_count); if (lmmp && *lmmp)