From 5d08086ca1bb8153c2460425020065d9421f33a1 Mon Sep 17 00:00:00 2001 From: green Date: Thu, 13 Nov 2008 02:16:06 +0000 Subject: [PATCH] b=16823 r=adilger,shadow Remove 4G limit for stripe_size * num_stripes. 4G limit on stripe_size is still in place, though. --- lustre/lov/lov_obd.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lustre/lov/lov_obd.c b/lustre/lov/lov_obd.c index 2216176..aef32ae 100644 --- a/lustre/lov/lov_obd.c +++ b/lustre/lov/lov_obd.c @@ -867,7 +867,6 @@ static int lov_setup(struct obd_device *obd, obd_count len, void *buf) struct lustre_cfg *lcfg = buf; struct lov_desc *desc; struct lov_obd *lov = &obd->u.lov; - int count; int rc; ENTRY; @@ -898,17 +897,6 @@ static int lov_setup(struct obd_device *obd, obd_count len, void *buf) lov_fix_desc(desc); - /* Because of 64-bit divide/mod operations only work with a 32-bit - * divisor in a 32-bit kernel, we cannot support a stripe width - * of 4GB or larger on 32-bit CPUs. */ - count = desc->ld_default_stripe_count; - if ((count > 0 ? count : desc->ld_tgt_count) * - desc->ld_default_stripe_size > 0xffffffff) { - CERROR("LOV: stripe width "LPU64"x%u > 4294967295 bytes\n", - desc->ld_default_stripe_size, count); - RETURN(-EINVAL); - } - desc->ld_active_tgt_count = 0; lov->desc = *desc; lov->lov_tgt_size = 0; -- 1.8.3.1