From: Liu Bo Date: Tue, 8 Oct 2013 10:19:14 +0000 (+0800) Subject: Btrfs: cleanup dead code of defragment X-Git-Tag: v3.13-rc3~10^2~76 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8319bfe13642ea2d411c885400377d5fc6f32271;p=platform%2Fkernel%2Flinux-exynos.git Btrfs: cleanup dead code of defragment @is_extent is no more needed since we don't defrag extent root. Signed-off-by: Liu Bo Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/tree-defrag.c b/fs/btrfs/tree-defrag.c index cbaa73c..76928ca 100644 --- 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))