From: adilger Date: Wed, 17 Mar 2004 08:21:51 +0000 (+0000) Subject: Fix assertion for end of loop. X-Git-Tag: v1_8_0_110~486^6~78 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=09cb8de70e495ed6cadfb51d5567b1f6a0f57717;p=fs%2Flustre-release.git Fix assertion for end of loop. b=2925 --- diff --git a/lustre/llite/file.c b/lustre/llite/file.c index ae46d6b..d660fce 100644 --- a/lustre/llite/file.c +++ b/lustre/llite/file.c @@ -434,9 +434,9 @@ void ll_pgcache_remove_extent(struct inode *inode, struct lov_stripe_md *lsm, unlock_page(page); page_cache_release(page); } - LASSERTF(tmpex.l_extent.start <= lock->l_policy_data.l_extent.end, + LASSERTF(tmpex.l_extent.start <= lock->l_policy_data.l_extent.end + 1, "loop too long "LPU64" != "LPU64" start %lu i %lu end %lu\n", - tmpex.l_extent.start, lock->l_policy_data.l_extent.end, + tmpex.l_extent.start, lock->l_policy_data.l_extent.end + 1, start, i, end); EXIT; } @@ -883,7 +883,8 @@ static int ll_lov_recreate_obj(struct inode *inode, struct file *file, } static int ll_lov_setstripe_ea_info(struct inode *inode, struct file *file, - int flags, struct lov_user_md *lum, int lum_size) + int flags, struct lov_user_md *lum, + int lum_size) { struct ll_inode_info *lli = ll_i2info(inode); struct file *f;