1
0
Fork 0

Btrfs: Free free_space item properly in btrfs_trim_block_group()

Since commit dc89e98244, we've changed
to use a specific slab for alocation of free_space items.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
hifive-unleashed-5.1
Li Zefan 2011-04-25 19:43:52 -04:00 committed by Chris Mason
parent cfece4db11
commit f789b684bd
1 changed files with 1 additions and 1 deletions

View File

@ -2301,7 +2301,7 @@ int btrfs_trim_block_group(struct btrfs_block_group_cache *block_group,
start = entry->offset;
bytes = min(entry->bytes, end - start);
unlink_free_space(block_group, entry);
kfree(entry);
kmem_cache_free(btrfs_free_space_cachep, entry);
}
spin_unlock(&block_group->tree_lock);