]> Pileus Git - ~andy/linux/blobdiff - fs/btrfs/extent-tree.c
Btrfs: don't clean old snapshots on sync(1)
[~andy/linux] / fs / btrfs / extent-tree.c
index 376656f65b337f0b028bd8910feec3a9dd2bc1be..c59e12036e20f33eb816c3852d7742688b139c39 100644 (file)
@@ -2872,7 +2872,8 @@ static noinline int find_free_extent(struct btrfs_trans_handle *trans,
 
        if (data & BTRFS_BLOCK_GROUP_METADATA) {
                last_ptr = &root->fs_info->last_alloc;
-               empty_cluster = 64 * 1024;
+               if (!btrfs_test_opt(root, SSD))
+                       empty_cluster = 64 * 1024;
        }
 
        if ((data & BTRFS_BLOCK_GROUP_DATA) && btrfs_test_opt(root, SSD))