/linux/fs/btrfs/ |
H A D | super.c | 728 if (!btrfs_test_opt(fs_info, FREE_SPACE_TREE)) { in btrfs_set_free_space_cache_settings() 740 if (btrfs_test_opt(fs_info, FREE_SPACE_TREE)) in btrfs_set_free_space_cache_settings() 750 if (btrfs_test_opt(fs_info, SPACE_CACHE)) in btrfs_set_free_space_cache_settings() 753 if (btrfs_test_opt(fs_info, NOSPACECACHE)) in btrfs_set_free_space_cache_settings() 768 if (!btrfs_test_opt(fs_info, NOSSD) && in set_device_specific_options() 781 if (!(btrfs_test_opt(fs_info, DISCARD_SYNC) || in set_device_specific_options() 782 btrfs_test_opt(fs_info, DISCARD_ASYNC) || in set_device_specific_options() 783 btrfs_test_opt(fs_info, NODISCARD)) && in set_device_specific_options() 1063 if (btrfs_test_opt(info, DEGRADED)) in btrfs_show_options() 1065 if (btrfs_test_opt(info, NODATASUM)) in btrfs_show_options() [all …]
|
H A D | discard.c | 301 !btrfs_test_opt(block_group->fs_info, DISCARD_ASYNC)) in btrfs_discard_check_filter() 373 if (!block_group || !btrfs_test_opt(block_group->fs_info, DISCARD_ASYNC)) in btrfs_discard_queue_work() 657 !btrfs_test_opt(block_group->fs_info, DISCARD_ASYNC) || in btrfs_discard_update_discardable() 746 if (!btrfs_test_opt(fs_info, DISCARD_ASYNC)) { in btrfs_discard_resume()
|
H A D | block-group.c | 30 return (btrfs_test_opt(fs_info, FRAGMENT_METADATA) && in btrfs_should_fragment_free_space() 32 (btrfs_test_opt(fs_info, FRAGMENT_DATA) && in btrfs_should_fragment_free_space() 867 if (btrfs_test_opt(fs_info, SPACE_CACHE)) { in caching_thread() 1221 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in btrfs_remove_block_group() 1425 if (ret == -ENOSPC && btrfs_test_opt(cache->fs_info, ENOSPC_DEBUG)) { in inc_block_group_ro() 1513 const bool async_trim_enabled = btrfs_test_opt(fs_info, DISCARD_ASYNC); in btrfs_delete_unused_bgs() 1557 if (btrfs_test_opt(fs_info, DISCARD_ASYNC) && in btrfs_delete_unused_bgs() 1705 if (!async_trim_enabled && btrfs_test_opt(fs_info, DISCARD_ASYNC)) in btrfs_delete_unused_bgs() 1712 trimming = btrfs_test_opt(fs_info, DISCARD_SYNC) || in btrfs_delete_unused_bgs() 1912 if (!btrfs_test_opt(fs_info, DISCARD_ASYNC)) in btrfs_reclaim_bgs_work() [all …]
|
H A D | disk-io.c | 368 const bool ignore_csum = btrfs_test_opt(fs_info, IGNOREMETACSUMS); in btrfs_validate_extent_buffer() 2123 btrfs_test_opt(fs_info, IGNOREDATACSUMS)) { in load_global_roots_objectid() 2178 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) in load_global_roots_objectid() 2233 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) { in btrfs_read_roots() 2246 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) { in btrfs_read_roots() 2266 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) { in btrfs_read_roots() 2285 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) { in btrfs_read_roots() 2299 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) { in btrfs_read_roots() 2397 const bool ignore_flags = btrfs_test_opt(fs_info, IGNORESUPERFLAGS); in btrfs_validate_super() 2702 if (!btrfs_test_opt(fs_info, USEBACKUPROOT)) in init_tree_roots() [all …]
|
H A D | ref-verify.c | 669 if (!btrfs_test_opt(fs_info, REF_VERIFY)) in btrfs_ref_tree_mod() 893 if (!btrfs_test_opt(fs_info, REF_VERIFY)) in btrfs_free_ref_cache() 912 if (!btrfs_test_opt(fs_info, REF_VERIFY)) in btrfs_free_ref_tree_range() 980 if (!btrfs_test_opt(fs_info, REF_VERIFY)) in btrfs_build_ref_tree()
|
H A D | delayed-ref.h | 323 if (btrfs_test_opt(fs_info, FREE_SPACE_TREE)) in btrfs_calc_delayed_ref_bytes()
|
H A D | space-info.c | 1096 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in maybe_fail_all_tickets() 1109 if (!aborted && btrfs_test_opt(fs_info, ENOSPC_DEBUG)) in maybe_fail_all_tickets() 1889 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) in btrfs_reserve_metadata_bytes() 1920 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) in btrfs_reserve_data_bytes()
|
H A D | dev-replace.c | 181 !btrfs_test_opt(fs_info, DEGRADED)) { in btrfs_init_dev_replace() 190 !btrfs_test_opt(fs_info, DEGRADED)) { in btrfs_init_dev_replace()
|
H A D | transaction.c | 1950 if (btrfs_test_opt(fs_info, SPACE_CACHE)) in update_super_roots() 2136 if (btrfs_test_opt(fs_info, FLUSHONCOMMIT)) in btrfs_start_delalloc_flush() 2143 if (btrfs_test_opt(fs_info, FLUSHONCOMMIT)) in btrfs_wait_delalloc_flush()
|
H A D | volumes.c | 4679 if (btrfs_test_opt(fs_info, SKIP_BALANCE)) { in btrfs_resume_balance_async() 5284 if (btrfs_test_opt(info, ENOSPC_DEBUG)) in gather_device_info() 5411 if (btrfs_test_opt(info, ENOSPC_DEBUG)) { in decide_stripe_size() 5604 if (btrfs_test_opt(info, ENOSPC_DEBUG)) in btrfs_create_chunk() 7012 if (!btrfs_test_opt(fs_info, DEGRADED)) { in handle_missing_device() 7163 if (!btrfs_test_opt(fs_info, DEGRADED)) { in open_seed_devices() 7233 if (!btrfs_test_opt(fs_info, DEGRADED)) { in read_one_dev() 7249 if (!btrfs_test_opt(fs_info, DEGRADED)) { in read_one_dev() 8066 if (btrfs_test_opt(fs_info, IGNOREBADROOTS)) in btrfs_verify_dev_extents() 8223 if (btrfs_test_opt(fs_info, DEGRADED)) in btrfs_repair_one_zone()
|
H A D | fs.h | 1059 #define btrfs_test_opt(fs_info, opt) ((fs_info)->mount_opt & \ macro
|
H A D | extent-tree.c | 1413 ASSERT(btrfs_test_opt(fs_info, DEGRADED)); in btrfs_discard_extent() 2728 if (btrfs_test_opt(fs_info, SSD)) in fetch_cluster_info() 2733 btrfs_test_opt(fs_info, SSD_SPREAD)) { in fetch_cluster_info() 2841 if (btrfs_test_opt(fs_info, DISCARD_SYNC)) in btrfs_finish_extent_commit() 2886 if (btrfs_test_opt(fs_info, DISCARD_ASYNC)) { in btrfs_finish_extent_commit() 4728 } else if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in btrfs_reserve_extent()
|
H A D | free-space-cache.c | 2763 if (btrfs_test_opt(block_group->fs_info, DISCARD_SYNC)) in btrfs_add_free_space() 2793 if (btrfs_test_opt(block_group->fs_info, DISCARD_SYNC) || in btrfs_add_free_space_async_trimmed() 2794 btrfs_test_opt(block_group->fs_info, DISCARD_ASYNC)) in btrfs_add_free_space_async_trimmed() 3575 if (btrfs_test_opt(fs_info, SSD_SPREAD)) { in btrfs_find_space_cluster()
|
H A D | zoned.c | 1487 !btrfs_test_opt(fs_info, DEGRADED)) { in btrfs_load_block_group_raid1() 1494 if (!btrfs_test_opt(fs_info, DEGRADED) && in btrfs_load_block_group_raid1()
|
H A D | defrag.c | 104 if (!btrfs_test_opt(fs_info, AUTO_DEFRAG)) in need_auto_defrag()
|
H A D | inode.c | 793 if (btrfs_test_opt(fs_info, FORCE_COMPRESS)) in inode_need_compress() 798 if (btrfs_test_opt(fs_info, COMPRESS) || in inode_need_compress() 1023 if (!btrfs_test_opt(fs_info, FORCE_COMPRESS) && !inode->prop_compress) in compress_file_range() 3289 if (ret && btrfs_test_opt(fs_info, DISCARD_SYNC)) in btrfs_finish_one_ordered() 6474 if (btrfs_test_opt(fs_info, NODATASUM)) in btrfs_create_new_inode() 6476 if (btrfs_test_opt(fs_info, NODATACOW)) in btrfs_create_new_inode()
|
H A D | ioctl.c | 436 if (btrfs_test_opt(fs_info, NOLOGREPLAY)) in btrfs_ioctl_fitrim() 2451 if (!btrfs_test_opt(fs_info, USER_SUBVOL_RM_ALLOWED)) in btrfs_ioctl_snap_destroy()
|
H A D | tree-log.c | 3003 if (!btrfs_test_opt(fs_info, SSD) && in btrfs_sync_log() 7133 if (btrfs_test_opt(fs_info, NOTREELOG)) in btrfs_log_inode_parent()
|
H A D | scrub.c | 2848 if (btrfs_test_opt(fs_info, DISCARD_ASYNC)) in scrub_enumerate_chunks()
|