Home
last modified time | relevance | path

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

/Linux-v6.6/fs/btrfs/
Dsuper.c365 if (btrfs_test_opt(info, NODATASUM)) { in btrfs_parse_options()
366 if (btrfs_test_opt(info, NODATACOW)) in btrfs_parse_options()
376 if (!btrfs_test_opt(info, NODATACOW)) { in btrfs_parse_options()
377 if (!btrfs_test_opt(info, COMPRESS) || in btrfs_parse_options()
378 !btrfs_test_opt(info, FORCE_COMPRESS)) { in btrfs_parse_options()
400 saved_compress_type = btrfs_test_opt(info, in btrfs_parse_options()
404 btrfs_test_opt(info, FORCE_COMPRESS); in btrfs_parse_options()
656 if (btrfs_test_opt(info, SPACE_CACHE)) { in btrfs_parse_options()
660 if (btrfs_test_opt(info, FREE_SPACE_TREE)) { in btrfs_parse_options()
831 !btrfs_test_opt(info, FREE_SPACE_TREE) && in btrfs_parse_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()
Ddisk-io.c2107 btrfs_test_opt(fs_info, IGNOREDATACSUMS)) { in load_global_roots_objectid()
2142 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) in load_global_roots_objectid()
2163 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) in load_global_roots_objectid()
2219 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) { in btrfs_read_roots()
2232 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) { in btrfs_read_roots()
2252 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) { in btrfs_read_roots()
2272 if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) { in btrfs_read_roots()
2590 if (!btrfs_test_opt(fs_info, USEBACKUPROOT)) in init_tree_roots()
2934 const bool cache_opt = btrfs_test_opt(fs_info, SPACE_CACHE); in btrfs_start_pre_rw_mount()
2937 if (btrfs_test_opt(fs_info, CLEAR_CACHE) && in btrfs_start_pre_rw_mount()
[all …]
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()
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()
1473 const bool async_trim_enabled = btrfs_test_opt(fs_info, DISCARD_ASYNC); in btrfs_delete_unused_bgs()
1516 if (btrfs_test_opt(fs_info, DISCARD_ASYNC) && in btrfs_delete_unused_bgs()
1616 if (!async_trim_enabled && btrfs_test_opt(fs_info, DISCARD_ASYNC)) in btrfs_delete_unused_bgs()
1623 trimming = btrfs_test_opt(fs_info, DISCARD_SYNC) || in btrfs_delete_unused_bgs()
1818 if (!btrfs_test_opt(fs_info, DISCARD_ASYNC)) in btrfs_reclaim_bgs_work()
[all …]
Dfs.h925 #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)) \
Dref-verify.c679 if (!btrfs_test_opt(fs_info, REF_VERIFY)) in btrfs_ref_tree_mod()
898 if (!btrfs_test_opt(fs_info, REF_VERIFY)) in btrfs_free_ref_cache()
917 if (!btrfs_test_opt(fs_info, REF_VERIFY)) in btrfs_free_ref_tree_range()
985 if (!btrfs_test_opt(fs_info, REF_VERIFY)) in btrfs_build_ref_tree()
Dmessages.c305 if (fs_info && (btrfs_test_opt(fs_info, PANIC_ON_FATAL_ERROR))) in __btrfs_panic()
Dspace-info.c1004 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()
Ddelayed-ref.h274 if (btrfs_test_opt(fs_info, FREE_SPACE_TREE)) in btrfs_calc_delayed_ref_bytes()
Dblock-rsv.c510 btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in btrfs_use_block_rsv()
Ddev-replace.c188 !btrfs_test_opt(fs_info, DEGRADED)) { in btrfs_init_dev_replace()
197 !btrfs_test_opt(fs_info, DEGRADED)) { in btrfs_init_dev_replace()
Dvolumes.c4467 if (btrfs_test_opt(fs_info, SKIP_BALANCE)) { in btrfs_resume_balance_async()
5231 if (btrfs_test_opt(info, ENOSPC_DEBUG)) in gather_device_info()
5354 if (btrfs_test_opt(info, ENOSPC_DEBUG)) { in decide_stripe_size()
5486 if (btrfs_test_opt(info, ENOSPC_DEBUG)) in btrfs_create_chunk()
6723 if (!btrfs_test_opt(fs_info, DEGRADED)) { in handle_missing_device()
6901 if (!btrfs_test_opt(fs_info, DEGRADED)) in open_seed_devices()
6967 if (!btrfs_test_opt(fs_info, DEGRADED)) { in read_one_dev()
6983 if (!btrfs_test_opt(fs_info, DEGRADED)) { in read_one_dev()
7857 if (btrfs_test_opt(fs_info, IGNOREBADROOTS)) in btrfs_verify_dev_extents()
8014 if (btrfs_test_opt(fs_info, DEGRADED)) in btrfs_repair_one_zone()
Dtransaction.c1938 if (btrfs_test_opt(fs_info, SPACE_CACHE)) in update_super_roots()
2111 if (btrfs_test_opt(fs_info, FLUSHONCOMMIT)) in btrfs_start_delalloc_flush()
2118 if (btrfs_test_opt(fs_info, FLUSHONCOMMIT)) in btrfs_wait_delalloc_flush()
Dextent-tree.c1383 ASSERT(btrfs_test_opt(fs_info, DEGRADED)); in btrfs_discard_extent()
2672 if (btrfs_test_opt(fs_info, SSD)) in fetch_cluster_info()
2677 btrfs_test_opt(fs_info, SSD_SPREAD)) { in fetch_cluster_info()
2800 if (btrfs_test_opt(fs_info, DISCARD_SYNC)) in btrfs_finish_extent_commit()
2811 if (btrfs_test_opt(fs_info, DISCARD_ASYNC)) { in btrfs_finish_extent_commit()
4529 } else if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in btrfs_reserve_extent()
Dfree-space-cache.c2756 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()
Ddefrag.c113 if (!btrfs_test_opt(fs_info, AUTO_DEFRAG)) in __need_auto_defrag()
Dzoned.c801 if (btrfs_test_opt(info, SPACE_CACHE)) { in btrfs_check_mountopts_zoned()
806 if (btrfs_test_opt(info, NODATACOW)) { in btrfs_check_mountopts_zoned()
Dinode.c792 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()
3192 if (ret && btrfs_test_opt(fs_info, DISCARD_SYNC)) in btrfs_finish_one_ordered()
6219 if (btrfs_test_opt(fs_info, NODATASUM)) in btrfs_create_new_inode()
6221 if (btrfs_test_opt(fs_info, NODATACOW)) in btrfs_create_new_inode()
Dioctl.c507 if (btrfs_test_opt(fs_info, NOLOGREPLAY)) in btrfs_ioctl_fitrim()
2509 if (!btrfs_test_opt(fs_info, USER_SUBVOL_RM_ALLOWED)) in btrfs_ioctl_snap_destroy()
Dtree-log.c2902 if (!btrfs_test_opt(fs_info, SSD) && in btrfs_sync_log()
6987 if (btrfs_test_opt(fs_info, NOTREELOG)) { in btrfs_log_inode_parent()
Dscrub.c2628 if (btrfs_test_opt(fs_info, DISCARD_ASYNC)) in scrub_enumerate_chunks()