Home
last modified time | relevance | path

Searched refs:btrfs_test_opt (Results 1 – 21 of 21) sorted by relevance

/linux-6.1.9/fs/btrfs/
Dsuper.c382 if (fs_info && (btrfs_test_opt(fs_info, PANIC_ON_FATAL_ERROR))) in __btrfs_panic()
677 if (btrfs_test_opt(info, NODATASUM)) { in btrfs_parse_options()
678 if (btrfs_test_opt(info, NODATACOW)) in btrfs_parse_options()
688 if (!btrfs_test_opt(info, NODATACOW)) { in btrfs_parse_options()
689 if (!btrfs_test_opt(info, COMPRESS) || in btrfs_parse_options()
690 !btrfs_test_opt(info, FORCE_COMPRESS)) { in btrfs_parse_options()
712 saved_compress_type = btrfs_test_opt(info, in btrfs_parse_options()
716 btrfs_test_opt(info, FORCE_COMPRESS); in btrfs_parse_options()
966 if (btrfs_test_opt(info, SPACE_CACHE)) { in btrfs_parse_options()
970 if (btrfs_test_opt(info, FREE_SPACE_TREE)) { in btrfs_parse_options()
[all …]
Ddiscard.c252 !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()
Dblock-group.h259 return (btrfs_test_opt(fs_info, FRAGMENT_METADATA) && in btrfs_should_fragment_free_space()
261 (btrfs_test_opt(fs_info, FRAGMENT_DATA) && in btrfs_should_fragment_free_space()
Dblock-group.c673 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()
[all …]
Ddisk-io.c2427 btrfs_test_opt(fs_info, IGNOREDATACSUMS)) { in load_global_roots_objectid()
2462 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) in load_global_roots_objectid()
2483 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) in load_global_roots_objectid()
2539 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) { in btrfs_read_roots()
2552 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) { in btrfs_read_roots()
2572 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) { in btrfs_read_roots()
2592 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) { in btrfs_read_roots()
2909 if (!btrfs_test_opt(fs_info, USEBACKUPROOT)) in init_tree_roots()
3203 const bool cache_opt = btrfs_test_opt(fs_info, SPACE_CACHE); in btrfs_start_pre_rw_mount()
3206 if (btrfs_test_opt(fs_info, CLEAR_CACHE) && in btrfs_start_pre_rw_mount()
[all …]
Dref-verify.c676 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()
982 if (!btrfs_test_opt(fs_info, REF_VERIFY)) in btrfs_build_ref_tree()
Dspace-info.c1019 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in maybe_fail_all_tickets()
1032 if (!aborted && btrfs_test_opt(fs_info, ENOSPC_DEBUG)) in maybe_fail_all_tickets()
1740 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) in btrfs_reserve_metadata_bytes()
1772 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) in btrfs_reserve_data_bytes()
Dblock-rsv.c530 btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in btrfs_use_block_rsv()
Ddelayed-ref.c95 if (btrfs_test_opt(fs_info, FREE_SPACE_TREE)) in btrfs_delayed_refs_rsv_release()
130 if (btrfs_test_opt(fs_info, FREE_SPACE_TREE)) in btrfs_update_delayed_refs_rsv()
Ddev-replace.c186 !btrfs_test_opt(fs_info, DEGRADED)) { in btrfs_init_dev_replace()
195 !btrfs_test_opt(fs_info, DEGRADED)) { in btrfs_init_dev_replace()
Dtransaction.c1891 if (btrfs_test_opt(fs_info, SPACE_CACHE)) in update_super_roots()
2051 if (btrfs_test_opt(fs_info, FLUSHONCOMMIT)) in btrfs_start_delalloc_flush()
2058 if (btrfs_test_opt(fs_info, FLUSHONCOMMIT)) in btrfs_wait_delalloc_flush()
Dvolumes.c4461 if (btrfs_test_opt(fs_info, SKIP_BALANCE)) { in btrfs_resume_balance_async()
5226 if (btrfs_test_opt(info, ENOSPC_DEBUG)) in gather_device_info()
5349 if (btrfs_test_opt(info, ENOSPC_DEBUG)) { in decide_stripe_size()
5482 if (btrfs_test_opt(info, ENOSPC_DEBUG)) in btrfs_create_chunk()
7137 if (!btrfs_test_opt(fs_info, DEGRADED)) { in handle_missing_device()
7316 if (!btrfs_test_opt(fs_info, DEGRADED)) in open_seed_devices()
7382 if (!btrfs_test_opt(fs_info, DEGRADED)) { in read_one_dev()
7398 if (!btrfs_test_opt(fs_info, DEGRADED)) { in read_one_dev()
8272 if (btrfs_test_opt(fs_info, IGNOREBADROOTS)) in btrfs_verify_dev_extents()
8429 if (btrfs_test_opt(fs_info, DEGRADED)) in btrfs_repair_one_zone()
Dextent-tree.c1344 ASSERT(btrfs_test_opt(fs_info, DEGRADED)); in btrfs_discard_extent()
2653 if (btrfs_test_opt(fs_info, SSD)) in fetch_cluster_info()
2658 btrfs_test_opt(fs_info, SSD_SPREAD)) { in fetch_cluster_info()
2782 if (btrfs_test_opt(fs_info, DISCARD_SYNC)) in btrfs_finish_extent_commit()
2793 if (btrfs_test_opt(fs_info, DISCARD_ASYNC)) { in btrfs_finish_extent_commit()
4580 } else if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in btrfs_reserve_extent()
Dfree-space-cache.c2737 if (btrfs_test_opt(block_group->fs_info, DISCARD_SYNC)) in btrfs_add_free_space()
2767 if (btrfs_test_opt(block_group->fs_info, DISCARD_SYNC) || in btrfs_add_free_space_async_trimmed()
2768 btrfs_test_opt(block_group->fs_info, DISCARD_ASYNC)) in btrfs_add_free_space_async_trimmed()
3551 if (btrfs_test_opt(fs_info, SSD_SPREAD)) { in btrfs_find_space_cluster()
Dzoned.c794 if (btrfs_test_opt(info, SPACE_CACHE)) { in btrfs_check_mountopts_zoned()
799 if (btrfs_test_opt(info, NODATACOW)) { in btrfs_check_mountopts_zoned()
Dctree.h1636 #define btrfs_test_opt(fs_info, opt) ((fs_info)->mount_opt & \ macro
1641 if (!btrfs_test_opt(fs_info, opt)) \
1648 if (btrfs_test_opt(fs_info, opt)) \
Dinode.c571 if (btrfs_test_opt(fs_info, FORCE_COMPRESS)) in inode_need_compress()
579 if (btrfs_test_opt(fs_info, COMPRESS) || in inode_need_compress()
863 if (!btrfs_test_opt(fs_info, FORCE_COMPRESS) && in compress_file_range()
1530 !btrfs_test_opt(fs_info, FORCE_COMPRESS)) { in cow_file_range_async()
3385 if (ret && btrfs_test_opt(fs_info, DISCARD_SYNC)) in btrfs_finish_ordered_io()
6355 if (btrfs_test_opt(fs_info, NODATASUM)) in btrfs_create_new_inode()
6357 if (btrfs_test_opt(fs_info, NODATACOW)) in btrfs_create_new_inode()
Dioctl.c494 if (btrfs_test_opt(fs_info, NOLOGREPLAY)) in btrfs_ioctl_fitrim()
3393 if (!btrfs_test_opt(fs_info, USER_SUBVOL_RM_ALLOWED)) in btrfs_ioctl_snap_destroy()
Dtree-log.c2973 if (!btrfs_test_opt(fs_info, SSD) && in btrfs_sync_log()
7026 if (btrfs_test_opt(fs_info, NOTREELOG)) { in btrfs_log_inode_parent()
Dfile.c126 if (!btrfs_test_opt(fs_info, AUTO_DEFRAG)) in __need_auto_defrag()
Dscrub.c4091 if (btrfs_test_opt(fs_info, DISCARD_ASYNC)) in scrub_enumerate_chunks()