commit | 9afbb0b752ef30a429c45b9de6706e28ad1a36e1 | [log] [tgz] |
---|---|---|
author | Chris Mason <chris.mason@oracle.com> | Fri Feb 15 13:19:35 2008 -0500 |
committer | Chris Mason <chris.mason@oracle.com> | Thu Sep 25 11:04:00 2008 -0400 |
tree | 2e1d749ced02b62282fe899237c7595ebb6add63 | |
parent | df68b8a7ad4a18c9e63f1c12015a59c3b7031adb [diff] [blame] |
Btrfs: Disable tree defrag in SSD mode Signed-off-by: Chris Mason <chris.mason@oracle.com>
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c index 220e9be..af5d4a0 100644 --- a/fs/btrfs/extent-tree.c +++ b/fs/btrfs/extent-tree.c
@@ -1835,7 +1835,8 @@ buf->start, buf->start + buf->len - 1, EXTENT_CSUM, GFP_NOFS); buf->flags |= EXTENT_CSUM; - btrfs_set_buffer_defrag(buf); + if (!btrfs_test_opt(root, SSD)) + btrfs_set_buffer_defrag(buf); trans->blocks_used++; return buf; }