- if (!data) {
- last_ptr = &root->fs_info->last_alloc;
- empty_cluster = 128 * 1024;
- }
-
- if (data && btrfs_test_opt(root, SSD)) {
- last_ptr = &root->fs_info->last_data_alloc;
- empty_cluster = 2 * 1024 * 1024;
- }
-
- if (last_ptr) {
- if (*last_ptr)
- hint_byte = *last_ptr;
- else {
- hint_byte = hint_byte &
- ~((u64)BTRFS_BLOCK_GROUP_SIZE - 1);
- empty_size += empty_cluster;
- }
- search_start = max(search_start, hint_byte);
- }
-
- search_end = min(search_end,
- btrfs_super_total_bytes(&info->super_copy));