/fs/btrfs/ |
D | super.c | 369 if (btrfs_test_opt(info, NODATASUM)) { in btrfs_parse_options() 370 if (btrfs_test_opt(info, NODATACOW)) in btrfs_parse_options() 380 if (!btrfs_test_opt(info, NODATACOW)) { in btrfs_parse_options() 381 if (!btrfs_test_opt(info, COMPRESS) || in btrfs_parse_options() 382 !btrfs_test_opt(info, FORCE_COMPRESS)) { in btrfs_parse_options() 404 saved_compress_type = btrfs_test_opt(info, in btrfs_parse_options() 408 btrfs_test_opt(info, FORCE_COMPRESS); in btrfs_parse_options() 660 if (btrfs_test_opt(info, SPACE_CACHE)) { in btrfs_parse_options() 664 if (btrfs_test_opt(info, FREE_SPACE_TREE)) { in btrfs_parse_options() 835 !btrfs_test_opt(info, FREE_SPACE_TREE) && in btrfs_parse_options() [all …]
|
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() 2944 const bool cache_opt = btrfs_test_opt(fs_info, SPACE_CACHE); in btrfs_start_pre_rw_mount() 2947 if (btrfs_test_opt(fs_info, CLEAR_CACHE) && in btrfs_start_pre_rw_mount() [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 | 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() 1412 if (ret == -ENOSPC && btrfs_test_opt(cache->fs_info, ENOSPC_DEBUG)) { in inc_block_group_ro() 1475 const bool async_trim_enabled = btrfs_test_opt(fs_info, DISCARD_ASYNC); in btrfs_delete_unused_bgs() 1519 if (btrfs_test_opt(fs_info, DISCARD_ASYNC) && in btrfs_delete_unused_bgs() 1659 if (!async_trim_enabled && btrfs_test_opt(fs_info, DISCARD_ASYNC)) in btrfs_delete_unused_bgs() 1666 trimming = btrfs_test_opt(fs_info, DISCARD_SYNC) || in btrfs_delete_unused_bgs() 1866 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 | space-info.c | 1003 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in maybe_fail_all_tickets() 1016 if (!aborted && btrfs_test_opt(fs_info, ENOSPC_DEBUG)) in maybe_fail_all_tickets() 1768 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) in btrfs_reserve_metadata_bytes() 1800 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) in btrfs_reserve_data_bytes()
|
D | messages.c | 305 if (fs_info && (btrfs_test_opt(fs_info, PANIC_ON_FATAL_ERROR))) in __btrfs_panic()
|
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 | 4486 if (btrfs_test_opt(fs_info, SKIP_BALANCE)) { in btrfs_resume_balance_async() 5250 if (btrfs_test_opt(info, ENOSPC_DEBUG)) in gather_device_info() 5373 if (btrfs_test_opt(info, ENOSPC_DEBUG)) { in decide_stripe_size() 5505 if (btrfs_test_opt(info, ENOSPC_DEBUG)) in btrfs_create_chunk() 6742 if (!btrfs_test_opt(fs_info, DEGRADED)) { in handle_missing_device() 6920 if (!btrfs_test_opt(fs_info, DEGRADED)) in open_seed_devices() 6986 if (!btrfs_test_opt(fs_info, DEGRADED)) { in read_one_dev() 7002 if (!btrfs_test_opt(fs_info, DEGRADED)) { in read_one_dev() 7876 if (btrfs_test_opt(fs_info, IGNOREBADROOTS)) in btrfs_verify_dev_extents() 8033 if (btrfs_test_opt(fs_info, DEGRADED)) in btrfs_repair_one_zone()
|
D | transaction.c | 1935 if (btrfs_test_opt(fs_info, SPACE_CACHE)) in update_super_roots() 2108 if (btrfs_test_opt(fs_info, FLUSHONCOMMIT)) in btrfs_start_delalloc_flush() 2115 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() 2806 if (btrfs_test_opt(fs_info, DISCARD_SYNC)) in btrfs_finish_extent_commit() 2817 if (btrfs_test_opt(fs_info, DISCARD_ASYNC)) { in btrfs_finish_extent_commit() 4559 } else if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in btrfs_reserve_extent()
|
D | free-space-cache.c | 2761 if (btrfs_test_opt(block_group->fs_info, DISCARD_SYNC)) in btrfs_add_free_space() 2791 if (btrfs_test_opt(block_group->fs_info, DISCARD_SYNC) || in btrfs_add_free_space_async_trimmed() 2792 btrfs_test_opt(block_group->fs_info, DISCARD_ASYNC)) in btrfs_add_free_space_async_trimmed() 3574 if (btrfs_test_opt(fs_info, SSD_SPREAD)) { in btrfs_find_space_cluster()
|
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 | defrag.c | 113 if (!btrfs_test_opt(fs_info, AUTO_DEFRAG)) in __need_auto_defrag()
|
D | inode.c | 793 if (btrfs_test_opt(fs_info, FORCE_COMPRESS)) in inode_need_compress() 801 if (btrfs_test_opt(fs_info, COMPRESS) || in inode_need_compress() 1032 if (!btrfs_test_opt(fs_info, FORCE_COMPRESS) && !inode->prop_compress) in compress_file_range() 3209 if (ret && btrfs_test_opt(fs_info, DISCARD_SYNC)) in btrfs_finish_one_ordered() 6258 if (btrfs_test_opt(fs_info, NODATASUM)) in btrfs_create_new_inode() 6260 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() 2540 if (!btrfs_test_opt(fs_info, USER_SUBVOL_RM_ALLOWED)) in btrfs_ioctl_snap_destroy()
|
D | tree-log.c | 2921 if (!btrfs_test_opt(fs_info, SSD) && in btrfs_sync_log() 7005 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()
|