From 1d71044851192ee36f0841b525d3df0e3b054794 Mon Sep 17 00:00:00 2001 From: Patrick Farrell Date: Fri, 29 Mar 2019 15:01:01 -0400 Subject: [PATCH 1/1] LU-11796 lov: Remove unnecessary assert This is asserting on network data from the server, and additionally, the LU-9846 (overstriping) work shows this condition is not a problem if it does somehow occur. Signed-off-by: Patrick Farrell Change-Id: I7b53eb63914f6e9d31a0747a40d09df9ffedaa91 Reviewed-on: https://review.whamcloud.com/33882 Reviewed-by: Andreas Dilger Reviewed-by: James Simmons Tested-by: Jenkins Tested-by: Maloo --- lustre/lov/lov_object.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lustre/lov/lov_object.c b/lustre/lov/lov_object.c index c4138b4..200f943 100644 --- a/lustre/lov/lov_object.c +++ b/lustre/lov/lov_object.c @@ -213,9 +213,8 @@ static int lov_init_raid0(const struct lu_env *env, struct lov_device *dev, spin_lock_init(&r0->lo_sub_lock); r0->lo_nr = lse->lsme_stripe_count; - LASSERT(r0->lo_nr <= lov_targets_nr(dev)); - OBD_ALLOC_LARGE(r0->lo_sub, r0->lo_nr * sizeof r0->lo_sub[0]); + OBD_ALLOC_LARGE(r0->lo_sub, r0->lo_nr * sizeof(r0->lo_sub[0])); if (r0->lo_sub == NULL) GOTO(out, result = -ENOMEM); -- 1.8.3.1