From: Patrick Farrell Date: Fri, 29 Mar 2019 19:01:01 +0000 (-0400) Subject: LU-11796 lov: Remove unnecessary assert X-Git-Tag: 2.12.53~21 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=1d71044851192ee36f0841b525d3df0e3b054794;ds=sidebyside 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 --- 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);