projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60376ce
)
Btrfs: cleanup for duplicated code in find_free_extent
author
Liu Bo
<bo.li.liu@oracle.com>
Fri, 14 Sep 2012 08:58:05 +0000
(
02:58
-0600)
committer
Chris Mason
<chris.mason@fusionio.com>
Thu, 4 Oct 2012 13:39:57 +0000
(09:39 -0400)
There is already an 'add free space' phrase in front of this one, we
needn't to redo it.
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
fs/btrfs/extent-tree.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/extent-tree.c
b/fs/btrfs/extent-tree.c
index 0bc83b3f33db9545315f546b2a076e4833b02169..27a6b3e6fa41f5c7ca606769c8cbf809b84b19c3 100644
(file)
--- a/
fs/btrfs/extent-tree.c
+++ b/
fs/btrfs/extent-tree.c
@@
-5828,10
+5828,6
@@
checks:
trace_btrfs_reserve_extent(orig_root, block_group,
search_start, num_bytes);
- if (offset < search_start)
- btrfs_add_free_space(used_block_group, offset,
- search_start - offset);
- BUG_ON(offset > search_start);
if (used_block_group != block_group)
btrfs_put_block_group(used_block_group);
btrfs_put_block_group(block_group);