aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/extent-tree.c')
-rw-r--r--fs/btrfs/extent-tree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 220e9be9ad82..af5d4a085280 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -1835,7 +1835,8 @@ struct extent_buffer *__btrfs_alloc_free_block(struct btrfs_trans_handle *trans,
1835 buf->start, buf->start + buf->len - 1, 1835 buf->start, buf->start + buf->len - 1,
1836 EXTENT_CSUM, GFP_NOFS); 1836 EXTENT_CSUM, GFP_NOFS);
1837 buf->flags |= EXTENT_CSUM; 1837 buf->flags |= EXTENT_CSUM;
1838 btrfs_set_buffer_defrag(buf); 1838 if (!btrfs_test_opt(root, SSD))
1839 btrfs_set_buffer_defrag(buf);
1839 trans->blocks_used++; 1840 trans->blocks_used++;
1840 return buf; 1841 return buf;
1841} 1842}