From dc74edd47e64e028e9cf4164173ef2778cb879ca Mon Sep 17 00:00:00 2001 From: johann <johann> Date: Mon, 6 Oct 2008 13:59:54 +0000 Subject: [PATCH] Branch HEAD b=17261 fix cast issue. --- lustre/lov/lov_pack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/lov/lov_pack.c b/lustre/lov/lov_pack.c index 904817ed9c..7d1d552f55 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) -- GitLab