From b33cba87140d6801368d68772c864f49178720eb Mon Sep 17 00:00:00 2001 From: James Simmons Date: Mon, 26 Nov 2012 12:56:51 -0500 Subject: [PATCH] LU-2251 osp: remove invalid assertion Given we initiate precreation before current pool is exhausted, we can easly get final number of precreated objects more than OST_MAX_PRECREATE but it should always be less then the theortical max of OST_MAX_PRECREATE * 2. If its more than that then the LASSERT is valid. Signed-off-by: Alex Zhuravlev Signed-off-by: James Simmons Change-Id: Ie3ec88c95d94529e457981942e8196b5a6f7d7ae Reviewed-on: http://review.whamcloud.com/4495 Tested-by: Hudson Reviewed-by: Alex Zhuravlev Tested-by: Maloo Reviewed-by: Andreas Dilger --- lustre/osp/osp_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/osp/osp_dev.c b/lustre/osp/osp_dev.c index 58d7824..c86efd8 100644 --- a/lustre/osp/osp_dev.c +++ b/lustre/osp/osp_dev.c @@ -338,7 +338,7 @@ static int osp_statfs(const struct lu_env *env, struct dt_device *dev, sfs->os_fprecreated -= d->opd_pre_reserved; cfs_spin_unlock(&d->opd_pre_lock); - LASSERT(sfs->os_fprecreated <= OST_MAX_PRECREATE); + LASSERT(sfs->os_fprecreated <= OST_MAX_PRECREATE * 2); CDEBUG(D_OTHER, "%s: "LPU64" blocks, "LPU64" free, "LPU64" avail, " LPU64" files, "LPU64" free files\n", d->opd_obd->obd_name, -- 1.8.3.1