Home
last modified time | relevance | path

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

/openbmc/linux/fs/btrfs/
H A Dsuper.c368 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 …]
H A 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()
H A Ddisk-io.c2116 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 …]
H A 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()
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 …]
H A Dfs.h927 #define btrfs_test_opt(fs_info, opt) ((fs_info)->mount_opt & \ macro
932 if (!btrfs_test_opt(fs_info, opt)) \
939 if (btrfs_test_opt(fs_info, opt)) \
H A Dref-verify.c679 if (!btrfs_test_opt(fs_info, REF_VERIFY)) in btrfs_ref_tree_mod()
903 if (!btrfs_test_opt(fs_info, REF_VERIFY)) in btrfs_free_ref_cache()
922 if (!btrfs_test_opt(fs_info, REF_VERIFY)) in btrfs_free_ref_tree_range()
990 if (!btrfs_test_opt(fs_info, REF_VERIFY)) in btrfs_build_ref_tree()
H A Dmessages.c305 if (fs_info && (btrfs_test_opt(fs_info, PANIC_ON_FATAL_ERROR))) in __btrfs_panic()
H A Dspace-info.c1003 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()
H A Ddelayed-ref.h274 if (btrfs_test_opt(fs_info, FREE_SPACE_TREE)) in btrfs_calc_delayed_ref_bytes()
H A Dblock-rsv.c510 btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in btrfs_use_block_rsv()
H A 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()
H A Dvolumes.c4518 if (btrfs_test_opt(fs_info, SKIP_BALANCE)) { in btrfs_resume_balance_async()
5282 if (btrfs_test_opt(info, ENOSPC_DEBUG)) in gather_device_info()
5405 if (btrfs_test_opt(info, ENOSPC_DEBUG)) { in decide_stripe_size()
5537 if (btrfs_test_opt(info, ENOSPC_DEBUG)) in btrfs_create_chunk()
6776 if (!btrfs_test_opt(fs_info, DEGRADED)) { in handle_missing_device()
6954 if (!btrfs_test_opt(fs_info, DEGRADED)) in open_seed_devices()
7020 if (!btrfs_test_opt(fs_info, DEGRADED)) { in read_one_dev()
7036 if (!btrfs_test_opt(fs_info, DEGRADED)) { in read_one_dev()
7910 if (btrfs_test_opt(fs_info, IGNOREBADROOTS)) in btrfs_verify_dev_extents()
8067 if (btrfs_test_opt(fs_info, DEGRADED)) in btrfs_repair_one_zone()
H A Dtransaction.c1937 if (btrfs_test_opt(fs_info, SPACE_CACHE)) in update_super_roots()
2110 if (btrfs_test_opt(fs_info, FLUSHONCOMMIT)) in btrfs_start_delalloc_flush()
2117 if (btrfs_test_opt(fs_info, FLUSHONCOMMIT)) in btrfs_wait_delalloc_flush()
H A Dextent-tree.c1404 ASSERT(btrfs_test_opt(fs_info, DEGRADED)); in btrfs_discard_extent()
2693 if (btrfs_test_opt(fs_info, SSD)) in fetch_cluster_info()
2698 btrfs_test_opt(fs_info, SSD_SPREAD)) { in fetch_cluster_info()
2822 if (btrfs_test_opt(fs_info, DISCARD_SYNC)) in btrfs_finish_extent_commit()
2833 if (btrfs_test_opt(fs_info, DISCARD_ASYNC)) { in btrfs_finish_extent_commit()
4577 } else if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in btrfs_reserve_extent()
H A Dfree-space-cache.c2761 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()
H A 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()
H A Ddefrag.c113 if (!btrfs_test_opt(fs_info, AUTO_DEFRAG)) in __need_auto_defrag()
H A Dinode.c793 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()
6256 if (btrfs_test_opt(fs_info, NODATASUM)) in btrfs_create_new_inode()
6258 if (btrfs_test_opt(fs_info, NODATACOW)) in btrfs_create_new_inode()
H A Dioctl.c507 if (btrfs_test_opt(fs_info, NOLOGREPLAY)) in btrfs_ioctl_fitrim()
2542 if (!btrfs_test_opt(fs_info, USER_SUBVOL_RM_ALLOWED)) in btrfs_ioctl_snap_destroy()
H A Dtree-log.c2921 if (!btrfs_test_opt(fs_info, SSD) && in btrfs_sync_log()
7005 if (btrfs_test_opt(fs_info, NOTREELOG)) { in btrfs_log_inode_parent()
H A Dscrub.c2651 if (btrfs_test_opt(fs_info, DISCARD_ASYNC)) in scrub_enumerate_chunks()