It is possible to hit the current count in normal operations,
so make it a lot gentler.
Signed-off-by: NeilBrown <neilb@suse.de>
struct fs *fs = fs_from_inode(ino);
u32 trunc_next, next_trunc;
int do_restart;
+ int loop_cnt = 20;
restart:
do_restart = 1;
lafs_iounlock_block(&ib2->b);
if (!list_empty(&ib2->b.siblings)) {
- static int cnt = 10;
printk("looping on %s\n", strblk(&ib2->b));
- cnt--;
- if (cnt < 0)
+ loop_cnt--;
+ if (loop_cnt < 0)
BUG();
}
putiref(ib2, MKREF(inode_handle_orphan2));