diff options
author | Liu Bo <bo.li.liu@oracle.com> | 2013-10-08 06:19:14 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-11-11 21:59:45 -0500 |
commit | 8319bfe13642ea2d411c885400377d5fc6f32271 (patch) | |
tree | 0a6a9fc39c68d1770dd27fdddd5da3987d636dfd /fs/btrfs/tree-defrag.c | |
parent | efd0c4055a26e88689b3c0cf95492dfe147cba67 (diff) |
Btrfs: cleanup dead code of defragment
@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>
Diffstat (limited to 'fs/btrfs/tree-defrag.c')
-rw-r--r-- | fs/btrfs/tree-defrag.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/tree-defrag.c b/fs/btrfs/tree-defrag.c index cbaa73c871a9..76928ca97741 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, | |||
37 | int ret = 0; | 37 | int ret = 0; |
38 | int wret; | 38 | int wret; |
39 | int level; | 39 | int level; |
40 | int is_extent = 0; | ||
41 | int next_key_ret = 0; | 40 | int next_key_ret = 0; |
42 | u64 last_ret = 0; | 41 | u64 last_ret = 0; |
43 | u64 min_trans = 0; | 42 | u64 min_trans = 0; |
@@ -50,7 +49,7 @@ int btrfs_defrag_leaves(struct btrfs_trans_handle *trans, | |||
50 | goto out; | 49 | goto out; |
51 | } | 50 | } |
52 | 51 | ||
53 | if (root->ref_cows == 0 && !is_extent) | 52 | if (root->ref_cows == 0) |
54 | goto out; | 53 | goto out; |
55 | 54 | ||
56 | if (btrfs_test_opt(root, SSD)) | 55 | if (btrfs_test_opt(root, SSD)) |