/Linux-v5.15/fs/btrfs/ |
D | super.c | 328 if (fs_info && (btrfs_test_opt(fs_info, PANIC_ON_FATAL_ERROR))) in __btrfs_panic() 622 if (btrfs_test_opt(info, NODATASUM)) { in btrfs_parse_options() 623 if (btrfs_test_opt(info, NODATACOW)) in btrfs_parse_options() 633 if (!btrfs_test_opt(info, NODATACOW)) { in btrfs_parse_options() 634 if (!btrfs_test_opt(info, COMPRESS) || in btrfs_parse_options() 635 !btrfs_test_opt(info, FORCE_COMPRESS)) { in btrfs_parse_options() 657 saved_compress_type = btrfs_test_opt(info, in btrfs_parse_options() 661 btrfs_test_opt(info, FORCE_COMPRESS); in btrfs_parse_options() 885 if (btrfs_test_opt(info, SPACE_CACHE)) { in btrfs_parse_options() 889 if (btrfs_test_opt(info, FREE_SPACE_TREE)) { in btrfs_parse_options() [all …]
|
D | discard.c | 252 !btrfs_test_opt(block_group->fs_info, DISCARD_ASYNC)) in btrfs_discard_check_filter() 321 if (!block_group || !btrfs_test_opt(block_group->fs_info, DISCARD_ASYNC)) in btrfs_discard_queue_work() 597 !btrfs_test_opt(block_group->fs_info, DISCARD_ASYNC) || in btrfs_discard_update_discardable() 679 if (!btrfs_test_opt(fs_info, DISCARD_ASYNC)) { in btrfs_discard_resume()
|
D | block-group.c | 660 if (btrfs_test_opt(fs_info, SPACE_CACHE)) { in caching_thread() 756 if (btrfs_test_opt(fs_info, SPACE_CACHE)) in btrfs_cache_block_group() 1014 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in btrfs_remove_block_group() 1220 if (ret == -ENOSPC && btrfs_test_opt(cache->fs_info, ENOSPC_DEBUG)) { in inc_block_group_ro() 1282 const bool async_trim_enabled = btrfs_test_opt(fs_info, DISCARD_ASYNC); in btrfs_delete_unused_bgs() 1322 if (btrfs_test_opt(fs_info, DISCARD_ASYNC) && in btrfs_delete_unused_bgs() 1414 if (!async_trim_enabled && btrfs_test_opt(fs_info, DISCARD_ASYNC)) in btrfs_delete_unused_bgs() 1421 trimming = btrfs_test_opt(fs_info, DISCARD_SYNC) || in btrfs_delete_unused_bgs() 1993 if (btrfs_test_opt(info, SPACE_CACHE)) in read_one_block_group() 2069 if (btrfs_test_opt(info, DISCARD_ASYNC)) in read_one_block_group() [all …]
|
D | block-group.h | 230 return (btrfs_test_opt(fs_info, FRAGMENT_METADATA) && in btrfs_should_fragment_free_space() 232 (btrfs_test_opt(fs_info, FRAGMENT_DATA) && in btrfs_should_fragment_free_space()
|
D | disk-io.c | 2445 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) { in btrfs_read_roots() 2457 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) { in btrfs_read_roots() 2469 if (!btrfs_test_opt(fs_info, IGNOREDATACSUMS)) { in btrfs_read_roots() 2473 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) { in btrfs_read_roots() 2490 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) { in btrfs_read_roots() 2510 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) { in btrfs_read_roots() 2524 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) { in btrfs_read_roots() 2791 if (!btrfs_test_opt(fs_info, USEBACKUPROOT)) in init_tree_roots() 3088 const bool cache_opt = btrfs_test_opt(fs_info, SPACE_CACHE); in btrfs_start_pre_rw_mount() 3091 if (btrfs_test_opt(fs_info, CLEAR_CACHE) && in btrfs_start_pre_rw_mount() [all …]
|
D | ref-verify.c | 676 if (!btrfs_test_opt(fs_info, REF_VERIFY)) in btrfs_ref_tree_mod() 895 if (!btrfs_test_opt(fs_info, REF_VERIFY)) in btrfs_free_ref_cache() 914 if (!btrfs_test_opt(fs_info, REF_VERIFY)) in btrfs_free_ref_tree_range() 981 if (!btrfs_test_opt(fs_info, REF_VERIFY)) in btrfs_build_ref_tree()
|
D | space-info.c | 891 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in maybe_fail_all_tickets() 905 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) in maybe_fail_all_tickets() 1583 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) in btrfs_reserve_metadata_bytes() 1614 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) in btrfs_reserve_data_bytes()
|
D | block-rsv.c | 516 btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in btrfs_use_block_rsv()
|
D | dev-replace.c | 188 !btrfs_test_opt(fs_info, DEGRADED)) { in btrfs_init_dev_replace() 197 !btrfs_test_opt(fs_info, DEGRADED)) { in btrfs_init_dev_replace()
|
D | transaction.c | 1831 if (btrfs_test_opt(fs_info, SPACE_CACHE)) in update_super_roots() 2025 if (btrfs_test_opt(fs_info, FLUSHONCOMMIT)) in btrfs_start_delalloc_flush() 2032 if (btrfs_test_opt(fs_info, FLUSHONCOMMIT)) in btrfs_wait_delalloc_flush()
|
D | volumes.c | 4376 if (btrfs_test_opt(fs_info, SKIP_BALANCE)) { in btrfs_resume_balance_async() 5145 if (btrfs_test_opt(info, ENOSPC_DEBUG)) in gather_device_info() 5265 if (btrfs_test_opt(info, ENOSPC_DEBUG)) { in decide_stripe_size() 5398 if (btrfs_test_opt(info, ENOSPC_DEBUG)) in btrfs_alloc_chunk() 7038 !btrfs_test_opt(fs_info, DEGRADED)) { in read_one_chunk() 7114 if (!btrfs_test_opt(fs_info, DEGRADED)) in open_seed_devices() 7177 if (!btrfs_test_opt(fs_info, DEGRADED)) { in read_one_dev() 7193 if (!btrfs_test_opt(fs_info, DEGRADED)) { in read_one_dev() 8065 if (btrfs_test_opt(fs_info, IGNOREBADROOTS)) in btrfs_verify_dev_extents() 8216 if (btrfs_test_opt(fs_info, DEGRADED)) in btrfs_repair_one_zone()
|
D | zoned.c | 630 if (btrfs_test_opt(info, SPACE_CACHE)) { in btrfs_check_mountopts_zoned() 635 if (btrfs_test_opt(info, NODATACOW)) { in btrfs_check_mountopts_zoned()
|
D | extent-tree.c | 1346 ASSERT(btrfs_test_opt(fs_info, DEGRADED)); in btrfs_discard_extent() 2676 if (btrfs_test_opt(fs_info, SSD)) in fetch_cluster_info() 2681 btrfs_test_opt(fs_info, SSD_SPREAD)) { in fetch_cluster_info() 2811 if (btrfs_test_opt(fs_info, DISCARD_SYNC)) in btrfs_finish_extent_commit() 2822 if (btrfs_test_opt(fs_info, DISCARD_ASYNC)) { in btrfs_finish_extent_commit() 4429 } else if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in btrfs_reserve_extent()
|
D | free-space-cache.c | 2589 if (btrfs_test_opt(block_group->fs_info, DISCARD_SYNC)) in btrfs_add_free_space() 2621 if (btrfs_test_opt(block_group->fs_info, DISCARD_SYNC) || in btrfs_add_free_space_async_trimmed() 2622 btrfs_test_opt(block_group->fs_info, DISCARD_ASYNC)) in btrfs_add_free_space_async_trimmed() 3417 if (btrfs_test_opt(fs_info, SSD_SPREAD)) { in btrfs_find_space_cluster()
|
D | ctree.h | 1425 #define btrfs_test_opt(fs_info, opt) ((fs_info)->mount_opt & \ macro 1430 if (!btrfs_test_opt(fs_info, opt)) \ 1437 if (btrfs_test_opt(fs_info, opt)) \
|
D | inode.c | 519 if (btrfs_test_opt(fs_info, FORCE_COMPRESS)) in inode_need_compress() 527 if (btrfs_test_opt(fs_info, COMPRESS) || in inode_need_compress() 800 if (!btrfs_test_opt(fs_info, FORCE_COMPRESS) && in compress_file_range() 1364 !btrfs_test_opt(fs_info, FORCE_COMPRESS)) { in cow_file_range_async() 3159 if (ret && btrfs_test_opt(fs_info, DISCARD_SYNC)) in btrfs_finish_ordered_io() 6564 if (btrfs_test_opt(fs_info, NODATASUM)) in btrfs_new_inode() 6566 if (btrfs_test_opt(fs_info, NODATACOW)) in btrfs_new_inode()
|
D | ioctl.c | 450 if (btrfs_test_opt(fs_info, NOLOGREPLAY)) in btrfs_ioctl_fitrim() 3069 if (!btrfs_test_opt(fs_info, USER_SUBVOL_RM_ALLOWED)) in btrfs_ioctl_snap_destroy()
|
D | tree-log.c | 3116 if (!btrfs_test_opt(fs_info, SSD) && in btrfs_sync_log() 6159 if (btrfs_test_opt(fs_info, NOTREELOG)) { in btrfs_log_inode_parent()
|
D | file.c | 123 if (!btrfs_test_opt(fs_info, AUTO_DEFRAG)) in __need_auto_defrag()
|
D | scrub.c | 3918 if (btrfs_test_opt(fs_info, DISCARD_ASYNC)) in scrub_enumerate_chunks()
|