Whamcloud - gitweb
Branch HEAD
authorjohann <johann>
Mon, 6 Oct 2008 13:59:54 +0000 (13:59 +0000)
committerjohann <johann>
Mon, 6 Oct 2008 13:59:54 +0000 (13:59 +0000)
b=17261

fix cast issue.

lustre/lov/lov_pack.c

index 904817e..7d1d552 100644 (file)
@@ -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)