projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efd0c40
)
Btrfs: cleanup dead code of defragment
author
Liu Bo
<bo.li.liu@oracle.com>
Tue, 8 Oct 2013 10:19:14 +0000
(18:19 +0800)
committer
Chris Mason
<chris.mason@fusionio.com>
Tue, 12 Nov 2013 02:59:45 +0000
(21:59 -0500)
@is_extent is no more needed since we don't defrag extent root.
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/tree-defrag.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/tree-defrag.c
b/fs/btrfs/tree-defrag.c
index cbaa73c871a9d636313859cdb770a1cdba5b8f84..76928ca97741c61ca4c65513266bbc15b2502d05 100644
(file)
--- a/
fs/btrfs/tree-defrag.c
+++ b/
fs/btrfs/tree-defrag.c
@@
-37,7
+37,6
@@
int btrfs_defrag_leaves(struct btrfs_trans_handle *trans,
int ret = 0;
int wret;
int level;
- int is_extent = 0;
int next_key_ret = 0;
u64 last_ret = 0;
u64 min_trans = 0;
@@
-50,7
+49,7
@@
int btrfs_defrag_leaves(struct btrfs_trans_handle *trans,
goto out;
}
- if (root->ref_cows == 0
&& !is_extent
)
+ if (root->ref_cows == 0)
goto out;
if (btrfs_test_opt(root, SSD))