/linux-6.6.21/fs/btrfs/ |
D | super.c | 368 if (btrfs_test_opt(info, NODATASUM)) { in btrfs_parse_options() 369 if (btrfs_test_opt(info, NODATACOW)) in btrfs_parse_options() 379 if (!btrfs_test_opt(info, NODATACOW)) { in btrfs_parse_options() 380 if (!btrfs_test_opt(info, COMPRESS) || in btrfs_parse_options() 381 !btrfs_test_opt(info, FORCE_COMPRESS)) { in btrfs_parse_options() 403 saved_compress_type = btrfs_test_opt(info, in btrfs_parse_options() 407 btrfs_test_opt(info, FORCE_COMPRESS); in btrfs_parse_options() 659 if (btrfs_test_opt(info, SPACE_CACHE)) { in btrfs_parse_options() 663 if (btrfs_test_opt(info, FREE_SPACE_TREE)) { in btrfs_parse_options() 834 !btrfs_test_opt(info, FREE_SPACE_TREE) && in btrfs_parse_options() [all …]
|
D | discard.c | 291 !btrfs_test_opt(block_group->fs_info, DISCARD_ASYNC)) in btrfs_discard_check_filter() 363 if (!block_group || !btrfs_test_opt(block_group->fs_info, DISCARD_ASYNC)) in btrfs_discard_queue_work() 644 !btrfs_test_opt(block_group->fs_info, DISCARD_ASYNC) || in btrfs_discard_update_discardable() 733 if (!btrfs_test_opt(fs_info, DISCARD_ASYNC)) { in btrfs_discard_resume()
|
D | disk-io.c | 2116 btrfs_test_opt(fs_info, IGNOREDATACSUMS)) { in load_global_roots_objectid() 2151 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) in load_global_roots_objectid() 2172 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) in load_global_roots_objectid() 2228 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) { in btrfs_read_roots() 2241 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) { in btrfs_read_roots() 2261 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) { in btrfs_read_roots() 2281 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) { in btrfs_read_roots() 2599 if (!btrfs_test_opt(fs_info, USEBACKUPROOT)) in init_tree_roots() 2943 const bool cache_opt = btrfs_test_opt(fs_info, SPACE_CACHE); in btrfs_start_pre_rw_mount() 2946 if (btrfs_test_opt(fs_info, CLEAR_CACHE) && in btrfs_start_pre_rw_mount() [all …]
|
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() 859 if (btrfs_test_opt(fs_info, SPACE_CACHE)) { in caching_thread() 1204 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in btrfs_remove_block_group() 1411 if (ret == -ENOSPC && btrfs_test_opt(cache->fs_info, ENOSPC_DEBUG)) { in inc_block_group_ro() 1474 const bool async_trim_enabled = btrfs_test_opt(fs_info, DISCARD_ASYNC); in btrfs_delete_unused_bgs() 1518 if (btrfs_test_opt(fs_info, DISCARD_ASYNC) && in btrfs_delete_unused_bgs() 1657 if (!async_trim_enabled && btrfs_test_opt(fs_info, DISCARD_ASYNC)) in btrfs_delete_unused_bgs() 1664 trimming = btrfs_test_opt(fs_info, DISCARD_SYNC) || in btrfs_delete_unused_bgs() 1863 if (!btrfs_test_opt(fs_info, DISCARD_ASYNC)) in btrfs_reclaim_bgs_work() [all …]
|
D | fs.h | 925 #define btrfs_test_opt(fs_info, opt) ((fs_info)->mount_opt & \ macro 930 if (!btrfs_test_opt(fs_info, opt)) \ 937 if (btrfs_test_opt(fs_info, opt)) \
|
D | ref-verify.c | 679 if (!btrfs_test_opt(fs_info, REF_VERIFY)) in btrfs_ref_tree_mod() 902 if (!btrfs_test_opt(fs_info, REF_VERIFY)) in btrfs_free_ref_cache() 921 if (!btrfs_test_opt(fs_info, REF_VERIFY)) in btrfs_free_ref_tree_range() 989 if (!btrfs_test_opt(fs_info, REF_VERIFY)) in btrfs_build_ref_tree()
|
D | messages.c | 305 if (fs_info && (btrfs_test_opt(fs_info, PANIC_ON_FATAL_ERROR))) in __btrfs_panic()
|
D | space-info.c | 1004 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in maybe_fail_all_tickets() 1017 if (!aborted && btrfs_test_opt(fs_info, ENOSPC_DEBUG)) in maybe_fail_all_tickets() 1769 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) in btrfs_reserve_metadata_bytes() 1801 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) in btrfs_reserve_data_bytes()
|
D | delayed-ref.h | 274 if (btrfs_test_opt(fs_info, FREE_SPACE_TREE)) in btrfs_calc_delayed_ref_bytes()
|
D | block-rsv.c | 510 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 | volumes.c | 4468 if (btrfs_test_opt(fs_info, SKIP_BALANCE)) { in btrfs_resume_balance_async() 5232 if (btrfs_test_opt(info, ENOSPC_DEBUG)) in gather_device_info() 5355 if (btrfs_test_opt(info, ENOSPC_DEBUG)) { in decide_stripe_size() 5487 if (btrfs_test_opt(info, ENOSPC_DEBUG)) in btrfs_create_chunk() 6724 if (!btrfs_test_opt(fs_info, DEGRADED)) { in handle_missing_device() 6902 if (!btrfs_test_opt(fs_info, DEGRADED)) in open_seed_devices() 6968 if (!btrfs_test_opt(fs_info, DEGRADED)) { in read_one_dev() 6984 if (!btrfs_test_opt(fs_info, DEGRADED)) { in read_one_dev() 7858 if (btrfs_test_opt(fs_info, IGNOREBADROOTS)) in btrfs_verify_dev_extents() 8015 if (btrfs_test_opt(fs_info, DEGRADED)) in btrfs_repair_one_zone()
|
D | transaction.c | 1936 if (btrfs_test_opt(fs_info, SPACE_CACHE)) in update_super_roots() 2109 if (btrfs_test_opt(fs_info, FLUSHONCOMMIT)) in btrfs_start_delalloc_flush() 2116 if (btrfs_test_opt(fs_info, FLUSHONCOMMIT)) in btrfs_wait_delalloc_flush()
|
D | extent-tree.c | 1388 ASSERT(btrfs_test_opt(fs_info, DEGRADED)); in btrfs_discard_extent() 2677 if (btrfs_test_opt(fs_info, SSD)) in fetch_cluster_info() 2682 btrfs_test_opt(fs_info, SSD_SPREAD)) { in fetch_cluster_info() 2805 if (btrfs_test_opt(fs_info, DISCARD_SYNC)) in btrfs_finish_extent_commit() 2816 if (btrfs_test_opt(fs_info, DISCARD_ASYNC)) { in btrfs_finish_extent_commit() 4558 } else if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in btrfs_reserve_extent()
|
D | free-space-cache.c | 2756 if (btrfs_test_opt(block_group->fs_info, DISCARD_SYNC)) in btrfs_add_free_space() 2786 if (btrfs_test_opt(block_group->fs_info, DISCARD_SYNC) || in btrfs_add_free_space_async_trimmed() 2787 btrfs_test_opt(block_group->fs_info, DISCARD_ASYNC)) in btrfs_add_free_space_async_trimmed() 3569 if (btrfs_test_opt(fs_info, SSD_SPREAD)) { in btrfs_find_space_cluster()
|
D | defrag.c | 113 if (!btrfs_test_opt(fs_info, AUTO_DEFRAG)) in __need_auto_defrag()
|
D | zoned.c | 801 if (btrfs_test_opt(info, SPACE_CACHE)) { in btrfs_check_mountopts_zoned() 806 if (btrfs_test_opt(info, NODATACOW)) { in btrfs_check_mountopts_zoned()
|
D | inode.c | 792 if (btrfs_test_opt(fs_info, FORCE_COMPRESS)) in inode_need_compress() 800 if (btrfs_test_opt(fs_info, COMPRESS) || in inode_need_compress() 1030 if (!btrfs_test_opt(fs_info, FORCE_COMPRESS) && !inode->prop_compress) in compress_file_range() 3207 if (ret && btrfs_test_opt(fs_info, DISCARD_SYNC)) in btrfs_finish_one_ordered() 6238 if (btrfs_test_opt(fs_info, NODATASUM)) in btrfs_create_new_inode() 6240 if (btrfs_test_opt(fs_info, NODATACOW)) in btrfs_create_new_inode()
|
D | ioctl.c | 507 if (btrfs_test_opt(fs_info, NOLOGREPLAY)) in btrfs_ioctl_fitrim() 2521 if (!btrfs_test_opt(fs_info, USER_SUBVOL_RM_ALLOWED)) in btrfs_ioctl_snap_destroy()
|
D | tree-log.c | 2902 if (!btrfs_test_opt(fs_info, SSD) && in btrfs_sync_log() 6987 if (btrfs_test_opt(fs_info, NOTREELOG)) { in btrfs_log_inode_parent()
|
D | scrub.c | 2647 if (btrfs_test_opt(fs_info, DISCARD_ASYNC)) in scrub_enumerate_chunks()
|