projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfece4d
)
Btrfs: Free free_space item properly in btrfs_trim_block_group()
author
Li Zefan
<lizf@cn.fujitsu.com>
Mon, 25 Apr 2011 23:43:52 +0000
(19:43 -0400)
committer
Chris Mason
<chris.mason@oracle.com>
Mon, 25 Apr 2011 23:43:52 +0000
(19:43 -0400)
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>
fs/btrfs/free-space-cache.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/free-space-cache.c
b/fs/btrfs/free-space-cache.c
index 11d2e9cea09e95b329cfe4e37aec5b50bcc46135..13c29b12a213a4e62c1e3b2187c7178798e18c9a 100644
(file)
--- 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,
start = entry->offset;
bytes = min(entry->bytes, end - start);
unlink_free_space(block_group, entry);
- k
free(
entry);
+ k
mem_cache_free(btrfs_free_space_cachep,
entry);
}
spin_unlock(&block_group->tree_lock);