Whamcloud - gitweb
Fix assertion for end of loop.
authoradilger <adilger>
Wed, 17 Mar 2004 08:21:51 +0000 (08:21 +0000)
committeradilger <adilger>
Wed, 17 Mar 2004 08:21:51 +0000 (08:21 +0000)
b=2925

lustre/llite/file.c

index ae46d6b..d660fce 100644 (file)
@@ -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;