int lafs_segtrack_init(struct segtracker *st);
void lafs_segtrack_free(struct segtracker *st);
+extern int temp_credits;/* debugging */
void lafs_space_use(struct fs *fs, int);
void lafs_free_get(struct fs *fs, unsigned int *dev, u32 *seg,
int nonlogged, int ssnum);
clear_bit(B_Uninc, &blk->flags);
if (test_and_clear_bit(B_UnincCredit, &blk->flags))
credits++;
+ temp_credits = credits;
putref(blk, MKREF(uninc));
}
while (i < icnt) {
encode32(b, 0);
i++;
}
+ temp_credits = 0;
return credits;
}
if (delcnt) {
clear_bit(B_Uninc, &blk->flags);
if (test_and_clear_bit(B_UnincCredit, &blk->flags))
credits++;
+ temp_credits = credits;
putref(blk, MKREF(uninc));
}
}
+ temp_credits = 0;
BUG_ON(ncnt);
return credits;
}
return credits;
}
+int temp_credits;
static void check_credits(struct fs *fs)
{
/* DEBUGGING AID
return;
credits = count_credits(&LAFSI(fs->ss[0].root)->iblock->b);
credits += count_credits(&LAFSI(fs->ss[0].root)->dblock->b);
- if (credits + fs->cluster_updates != fs->allocated_blocks) {
- printk("credits=%d updates=%d allocated=%d\n", credits,
- fs->cluster_updates,
+ if (credits + fs->cluster_updates + temp_credits != fs->allocated_blocks) {
+ printk("credits=%d updates=%d temp=%d allocated=%d\n", credits,
+ fs->cluster_updates, temp_credits,
(int)fs->allocated_blocks);
lafs_dump_tree();
BUG_ON(1);