From b6d78bfda9ded2edbdf6b3fb9a017b29a2063b61 Mon Sep 17 00:00:00 2001
From: johann <johann>
Date: Mon, 6 Oct 2008 14:02:53 +0000
Subject: [PATCH] Branch b1_6 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 ee1ef82311..36127eb2d0 100644
--- a/lustre/lov/lov_pack.c
+++ b/lustre/lov/lov_pack.c
@@ -137,7 +137,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);
         }
 
-- 
GitLab