Lines Matching refs:btrfs_test_opt
673 if (btrfs_test_opt(fs_info, SPACE_CACHE)) { in caching_thread()
1017 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in btrfs_remove_block_group()
1230 if (ret == -ENOSPC && btrfs_test_opt(cache->fs_info, ENOSPC_DEBUG)) { in inc_block_group_ro()
1292 const bool async_trim_enabled = btrfs_test_opt(fs_info, DISCARD_ASYNC); in btrfs_delete_unused_bgs()
1335 if (btrfs_test_opt(fs_info, DISCARD_ASYNC) && in btrfs_delete_unused_bgs()
1435 if (!async_trim_enabled && btrfs_test_opt(fs_info, DISCARD_ASYNC)) in btrfs_delete_unused_bgs()
1442 trimming = btrfs_test_opt(fs_info, DISCARD_SYNC) || in btrfs_delete_unused_bgs()
2020 if (btrfs_test_opt(info, SPACE_CACHE)) in read_one_block_group()
2089 if (btrfs_test_opt(info, DISCARD_ASYNC)) in read_one_block_group()
2186 if (btrfs_test_opt(info, SPACE_CACHE) && in btrfs_read_block_groups()
2189 if (btrfs_test_opt(info, CLEAR_CACHE)) in btrfs_read_block_groups()
2261 if (ret && btrfs_test_opt(info, IGNOREBADROOTS)) in btrfs_read_block_groups()
2735 if (!btrfs_test_opt(fs_info, SPACE_CACHE)) in cache_save_setup()
2815 !btrfs_test_opt(fs_info, SPACE_CACHE)) { in cache_save_setup()
2894 !btrfs_test_opt(fs_info, SPACE_CACHE)) in btrfs_setup_space_cache()
3285 if (btrfs_test_opt(info, SPACE_CACHE) && in btrfs_update_block_group()
3334 if (!btrfs_test_opt(info, DISCARD_ASYNC)) in btrfs_update_block_group()
3844 if (left < bytes && btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in reserve_chunk_space()