it is identical to lafs_space_return, and no-one uses it
anyway.
Signed-off-by: NeilBrown <neilb@suse.de>
cluster_flush(fs, 0);
}
- /* FIXME should this be _space_use ?? */
fs->cluster_updates -= uh->reserved;
lafs_space_return(fs, uh->reserved);
uh->reserved = 0;
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 lafs_get_cleanable(struct fs *fs, u16 *dev, u32 *seg);
check_credits(fs);
}
-void lafs_space_use(struct fs *fs, int credits)
-{
- spin_lock(&fs->alloc_lock);
- BUG_ON(credits < 0);
- BUG_ON(credits > fs->allocated_blocks);
- fs->allocated_blocks -= credits;
- spin_unlock(&fs->alloc_lock);
- check_credits(fs);
-}
-
int lafs_alloc_cleaner_segs(struct fs *fs, int max)
{
/* cleaner is about to start.