diff options
Diffstat (limited to 'fs/btrfs/tree-defrag.c')
-rw-r--r-- | fs/btrfs/tree-defrag.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/tree-defrag.c b/fs/btrfs/tree-defrag.c index 5c58630dce03..5935cbd8f2b8 100644 --- a/fs/btrfs/tree-defrag.c +++ b/fs/btrfs/tree-defrag.c | |||
@@ -179,6 +179,9 @@ int btrfs_defrag_leaves(struct btrfs_trans_handle *trans, | |||
179 | if (root->ref_cows == 0 && !is_extent) | 179 | if (root->ref_cows == 0 && !is_extent) |
180 | goto out; | 180 | goto out; |
181 | 181 | ||
182 | if (btrfs_test_opt(root, SSD)) | ||
183 | goto out; | ||
184 | |||
182 | path = btrfs_alloc_path(); | 185 | path = btrfs_alloc_path(); |
183 | if (!path) | 186 | if (!path) |
184 | return -ENOMEM; | 187 | return -ENOMEM; |