Skip to content

Commit

Permalink
LU-2251 osp: remove invalid assertion
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: James Simmons <[email protected]>
Change-Id: Ie3ec88c95d94529e457981942e8196b5a6f7d7ae
Reviewed-on: http://review.whamcloud.com/4495
Tested-by: Hudson
Reviewed-by: Alex Zhuravlev <[email protected]>
Tested-by: Maloo <[email protected]>
Reviewed-by: Andreas Dilger <[email protected]>
  • Loading branch information
jasimmons1973 authored and Oleg Drokin committed Nov 27, 2012
1 parent 9275e0c commit b33cba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lustre/osp/osp_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b33cba8

Please sign in to comment.