aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2011-04-25 19:43:52 -0400
committerChris Mason <chris.mason@oracle.com>2011-04-25 19:43:52 -0400
commitf789b684bdb96e7ec2fce79445555d4fd55fb94c (patch)
tree44bde9e49f5d1d16c3d6890528ce5a9b3977fb7e /fs
parentcfece4db110dacfd6b4b87b912c59e77e6846fc0 (diff)
Btrfs: Free free_space item properly in btrfs_trim_block_group()
Since commit dc89e9824464e91fa0b06267864ceabe3186fd8b, 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>
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/free-space-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/free-space-cache.c b/fs/btrfs/free-space-cache.c
index 11d2e9cea09e..13c29b12a213 100644
--- a/fs/btrfs/free-space-cache.c
+++ b/fs/btrfs/free-space-cache.c
@@ -2301,7 +2301,7 @@ int btrfs_trim_block_group(struct btrfs_block_group_cache *block_group,
2301 start = entry->offset; 2301 start = entry->offset;
2302 bytes = min(entry->bytes, end - start); 2302 bytes = min(entry->bytes, end - start);
2303 unlink_free_space(block_group, entry); 2303 unlink_free_space(block_group, entry);
2304 kfree(entry); 2304 kmem_cache_free(btrfs_free_space_cachep, entry);
2305 } 2305 }
2306 2306
2307 spin_unlock(&block_group->tree_lock); 2307 spin_unlock(&block_group->tree_lock);