Home
last modified time | relevance | path

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

/linux-6.14.4/fs/btrfs/
Dsuper.c723 if (!btrfs_test_opt(fs_info, FREE_SPACE_TREE)) { in btrfs_set_free_space_cache_settings()
735 if (btrfs_test_opt(fs_info, FREE_SPACE_TREE)) in btrfs_set_free_space_cache_settings()
745 if (btrfs_test_opt(fs_info, SPACE_CACHE)) in btrfs_set_free_space_cache_settings()
748 if (btrfs_test_opt(fs_info, NOSPACECACHE)) in btrfs_set_free_space_cache_settings()
763 if (!btrfs_test_opt(fs_info, NOSSD) && in set_device_specific_options()
776 if (!(btrfs_test_opt(fs_info, DISCARD_SYNC) || in set_device_specific_options()
777 btrfs_test_opt(fs_info, DISCARD_ASYNC) || in set_device_specific_options()
778 btrfs_test_opt(fs_info, NODISCARD)) && in set_device_specific_options()
1056 if (btrfs_test_opt(info, DEGRADED)) in btrfs_show_options()
1058 if (btrfs_test_opt(info, NODATASUM)) in btrfs_show_options()
[all …]
Ddiscard.c291 !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()
Dblock-group.c30 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()
857 if (btrfs_test_opt(fs_info, SPACE_CACHE)) { in caching_thread()
1211 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in btrfs_remove_block_group()
1406 if (ret == -ENOSPC && btrfs_test_opt(cache->fs_info, ENOSPC_DEBUG)) { in inc_block_group_ro()
1469 const bool async_trim_enabled = btrfs_test_opt(fs_info, DISCARD_ASYNC); in btrfs_delete_unused_bgs()
1513 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()
1867 if (!btrfs_test_opt(fs_info, DISCARD_ASYNC)) in btrfs_reclaim_bgs_work()
[all …]
Ddisk-io.c370 const bool ignore_csum = btrfs_test_opt(fs_info, IGNOREMETACSUMS); in btrfs_validate_extent_buffer()
2136 btrfs_test_opt(fs_info, IGNOREDATACSUMS)) { in load_global_roots_objectid()
2171 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) in load_global_roots_objectid()
2192 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) in load_global_roots_objectid()
2248 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()
2300 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) { in btrfs_read_roots()
2314 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) { in btrfs_read_roots()
2412 const bool ignore_flags = btrfs_test_opt(fs_info, IGNORESUPERFLAGS); in btrfs_validate_super()
[all …]
Dref-verify.c687 if (!btrfs_test_opt(fs_info, REF_VERIFY)) in btrfs_ref_tree_mod()
911 if (!btrfs_test_opt(fs_info, REF_VERIFY)) in btrfs_free_ref_cache()
930 if (!btrfs_test_opt(fs_info, REF_VERIFY)) in btrfs_free_ref_tree_range()
998 if (!btrfs_test_opt(fs_info, REF_VERIFY)) in btrfs_build_ref_tree()
Ddelayed-ref.h322 if (btrfs_test_opt(fs_info, FREE_SPACE_TREE)) in btrfs_calc_delayed_ref_bytes()
Dmessages.c305 if (fs_info && (btrfs_test_opt(fs_info, PANIC_ON_FATAL_ERROR))) in __btrfs_panic()
Dspace-info.c1050 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in maybe_fail_all_tickets()
1063 if (!aborted && btrfs_test_opt(fs_info, ENOSPC_DEBUG)) in maybe_fail_all_tickets()
1823 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) in btrfs_reserve_metadata_bytes()
1854 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) in btrfs_reserve_data_bytes()
Dblock-rsv.c512 btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in btrfs_use_block_rsv()
Ddev-replace.c185 !btrfs_test_opt(fs_info, DEGRADED)) { in btrfs_init_dev_replace()
194 !btrfs_test_opt(fs_info, DEGRADED)) { in btrfs_init_dev_replace()
Dtransaction.c1949 if (btrfs_test_opt(fs_info, SPACE_CACHE)) in update_super_roots()
2134 if (btrfs_test_opt(fs_info, FLUSHONCOMMIT)) in btrfs_start_delalloc_flush()
2141 if (btrfs_test_opt(fs_info, FLUSHONCOMMIT)) in btrfs_wait_delalloc_flush()
Dfs.h1043 #define btrfs_test_opt(fs_info, opt) ((fs_info)->mount_opt & \ macro
Dvolumes.c4749 if (btrfs_test_opt(fs_info, SKIP_BALANCE)) { in btrfs_resume_balance_async()
5350 if (btrfs_test_opt(info, ENOSPC_DEBUG)) in gather_device_info()
5473 if (btrfs_test_opt(info, ENOSPC_DEBUG)) { in decide_stripe_size()
5664 if (btrfs_test_opt(info, ENOSPC_DEBUG)) in btrfs_create_chunk()
7053 if (!btrfs_test_opt(fs_info, DEGRADED)) { in handle_missing_device()
7204 if (!btrfs_test_opt(fs_info, DEGRADED)) { in open_seed_devices()
7274 if (!btrfs_test_opt(fs_info, DEGRADED)) { in read_one_dev()
7290 if (!btrfs_test_opt(fs_info, DEGRADED)) { in read_one_dev()
8107 if (btrfs_test_opt(fs_info, IGNOREBADROOTS)) in btrfs_verify_dev_extents()
8264 if (btrfs_test_opt(fs_info, DEGRADED)) in btrfs_repair_one_zone()
Dextent-tree.c1417 ASSERT(btrfs_test_opt(fs_info, DEGRADED)); in btrfs_discard_extent()
2727 if (btrfs_test_opt(fs_info, SSD)) in fetch_cluster_info()
2732 btrfs_test_opt(fs_info, SSD_SPREAD)) { in fetch_cluster_info()
2844 if (btrfs_test_opt(fs_info, DISCARD_SYNC)) in btrfs_finish_extent_commit()
2856 if (btrfs_test_opt(fs_info, DISCARD_ASYNC)) { in btrfs_finish_extent_commit()
4693 } else if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in btrfs_reserve_extent()
Dfree-space-cache.c2766 if (btrfs_test_opt(block_group->fs_info, DISCARD_SYNC)) in btrfs_add_free_space()
2796 if (btrfs_test_opt(block_group->fs_info, DISCARD_SYNC) || in btrfs_add_free_space_async_trimmed()
2797 btrfs_test_opt(block_group->fs_info, DISCARD_ASYNC)) in btrfs_add_free_space_async_trimmed()
3578 if (btrfs_test_opt(fs_info, SSD_SPREAD)) { in btrfs_find_space_cluster()
Dzoned.c1455 !btrfs_test_opt(fs_info, DEGRADED)) { in btrfs_load_block_group_raid1()
1462 if (!btrfs_test_opt(fs_info, DEGRADED) && in btrfs_load_block_group_raid1()
Ddefrag.c110 if (!btrfs_test_opt(fs_info, AUTO_DEFRAG)) in need_auto_defrag()
Dinode.c811 if (btrfs_test_opt(fs_info, FORCE_COMPRESS)) in inode_need_compress()
819 if (btrfs_test_opt(fs_info, COMPRESS) || in inode_need_compress()
1042 if (!btrfs_test_opt(fs_info, FORCE_COMPRESS) && !inode->prop_compress) in compress_file_range()
3275 if (ret && btrfs_test_opt(fs_info, DISCARD_SYNC)) in btrfs_finish_one_ordered()
6337 if (btrfs_test_opt(fs_info, NODATASUM)) in btrfs_create_new_inode()
6339 if (btrfs_test_opt(fs_info, NODATACOW)) in btrfs_create_new_inode()
Dioctl.c438 if (btrfs_test_opt(fs_info, NOLOGREPLAY)) in btrfs_ioctl_fitrim()
2459 if (!btrfs_test_opt(fs_info, USER_SUBVOL_RM_ALLOWED)) in btrfs_ioctl_snap_destroy()
Dscrub.c2737 if (btrfs_test_opt(fs_info, DISCARD_ASYNC)) in scrub_enumerate_chunks()
Dtree-log.c2963 if (!btrfs_test_opt(fs_info, SSD) && in btrfs_sync_log()
7066 if (btrfs_test_opt(fs_info, NOTREELOG)) { in btrfs_log_inode_parent()