Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/fs/btrfs/
Dsuper.c309 if (fs_info && (btrfs_test_opt(fs_info, PANIC_ON_FATAL_ERROR))) in __btrfs_panic()
562 if (btrfs_test_opt(info, NODATASUM)) { in btrfs_parse_options()
563 if (btrfs_test_opt(info, NODATACOW)) in btrfs_parse_options()
573 if (!btrfs_test_opt(info, NODATACOW)) { in btrfs_parse_options()
574 if (!btrfs_test_opt(info, COMPRESS) || in btrfs_parse_options()
575 !btrfs_test_opt(info, FORCE_COMPRESS)) { in btrfs_parse_options()
597 saved_compress_type = btrfs_test_opt(info, in btrfs_parse_options()
601 btrfs_test_opt(info, FORCE_COMPRESS); in btrfs_parse_options()
837 if (btrfs_test_opt(info, SPACE_CACHE)) { in btrfs_parse_options()
841 if (btrfs_test_opt(info, FREE_SPACE_TREE)) { in btrfs_parse_options()
[all …]
Dinode-map.c41 if (!btrfs_test_opt(fs_info, INODE_MAP_CACHE)) in caching_kthread()
147 if (!btrfs_test_opt(fs_info, INODE_MAP_CACHE)) in start_caching()
191 if (!btrfs_test_opt(root->fs_info, INODE_MAP_CACHE)) in btrfs_find_free_ino()
221 if (!btrfs_test_opt(fs_info, INODE_MAP_CACHE)) in btrfs_return_ino()
261 if (!btrfs_test_opt(root->fs_info, INODE_MAP_CACHE)) in btrfs_unpin_free_ino()
422 if (!btrfs_test_opt(fs_info, INODE_MAP_CACHE)) in btrfs_save_ino_cache()
Ddiscard.c250 !btrfs_test_opt(block_group->fs_info, DISCARD_ASYNC)) in btrfs_discard_check_filter()
319 if (!block_group || !btrfs_test_opt(block_group->fs_info, DISCARD_ASYNC)) in btrfs_discard_queue_work()
586 !btrfs_test_opt(block_group->fs_info, DISCARD_ASYNC) || in btrfs_discard_update_discardable()
666 if (!btrfs_test_opt(fs_info, DISCARD_ASYNC)) { in btrfs_discard_resume()
Dblock-group.h216 return (btrfs_test_opt(fs_info, FRAGMENT_METADATA) && in btrfs_should_fragment_free_space()
218 (btrfs_test_opt(fs_info, FRAGMENT_DATA) && in btrfs_should_fragment_free_space()
Dblock-group.c743 if (btrfs_test_opt(fs_info, SPACE_CACHE)) { in btrfs_cache_block_group()
1086 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in btrfs_remove_block_group()
1281 if (ret == -ENOSPC && btrfs_test_opt(cache->fs_info, ENOSPC_DEBUG)) { in inc_block_group_ro()
1343 const bool async_trim_enabled = btrfs_test_opt(fs_info, DISCARD_ASYNC); in btrfs_delete_unused_bgs()
1378 if (btrfs_test_opt(fs_info, DISCARD_ASYNC) && in btrfs_delete_unused_bgs()
1471 if (!async_trim_enabled && btrfs_test_opt(fs_info, DISCARD_ASYNC)) in btrfs_delete_unused_bgs()
1475 trimming = btrfs_test_opt(fs_info, DISCARD_SYNC); in btrfs_delete_unused_bgs()
1928 if (btrfs_test_opt(info, SPACE_CACHE)) in read_one_block_group()
1988 if (btrfs_test_opt(info, DISCARD_ASYNC)) in read_one_block_group()
2017 if (btrfs_test_opt(info, SPACE_CACHE) && in btrfs_read_block_groups()
[all …]
Dref-verify.c688 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()
996 if (!btrfs_test_opt(fs_info, REF_VERIFY)) in btrfs_build_ref_tree()
Dspace-info.c868 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in maybe_fail_all_tickets()
897 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) in maybe_fail_all_tickets()
1444 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) in btrfs_reserve_metadata_bytes()
1474 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) in btrfs_reserve_data_bytes()
Ddisk-io.c2644 if (!btrfs_test_opt(fs_info, USEBACKUPROOT)) in init_tree_roots()
3122 !btrfs_test_opt(fs_info, NOLOGREPLAY))) { in open_ctree()
3202 if (fs_info->uuid_root && !btrfs_test_opt(fs_info, RESCAN_UUID_TREE) && in open_ctree()
3276 if (!btrfs_test_opt(fs_info, NOSSD) && in open_ctree()
3288 if (btrfs_test_opt(fs_info, CHECK_INTEGRITY)) { in open_ctree()
3290 btrfs_test_opt(fs_info, in open_ctree()
3309 !btrfs_test_opt(fs_info, NOLOGREPLAY)) { in open_ctree()
3349 if (btrfs_test_opt(fs_info, CLEAR_CACHE) && in open_ctree()
3369 if (btrfs_test_opt(fs_info, FREE_SPACE_TREE) && in open_ctree()
3416 } else if (btrfs_test_opt(fs_info, RESCAN_UUID_TREE) || in open_ctree()
[all …]
Dfree-space-cache.c764 if (btrfs_test_opt(fs_info, DISCARD_SYNC) || in __load_free_space_cache()
765 btrfs_test_opt(fs_info, DISCARD_ASYNC)) in __load_free_space_cache()
2536 if (btrfs_test_opt(block_group->fs_info, DISCARD_SYNC)) in btrfs_add_free_space()
2554 if (btrfs_test_opt(block_group->fs_info, DISCARD_SYNC) || in btrfs_add_free_space_async_trimmed()
2555 btrfs_test_opt(block_group->fs_info, DISCARD_ASYNC)) in btrfs_add_free_space_async_trimmed()
3316 if (btrfs_test_opt(fs_info, SSD_SPREAD)) { in btrfs_find_space_cluster()
3928 if (!btrfs_test_opt(fs_info, INODE_MAP_CACHE)) in load_free_ino_cache()
3973 if (!btrfs_test_opt(fs_info, INODE_MAP_CACHE)) in btrfs_write_out_ino_cache()
Dblock-rsv.c508 btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in btrfs_use_block_rsv()
Ddev-replace.c183 !btrfs_test_opt(fs_info, DEGRADED)) { in btrfs_init_dev_replace()
192 !btrfs_test_opt(fs_info, DEGRADED)) { in btrfs_init_dev_replace()
Dtransaction.c1805 if (btrfs_test_opt(fs_info, SPACE_CACHE)) in update_super_roots()
2025 if (btrfs_test_opt(fs_info, FLUSHONCOMMIT)) { in btrfs_start_delalloc_flush()
2053 if (btrfs_test_opt(fs_info, FLUSHONCOMMIT)) { in btrfs_wait_delalloc_flush()
Dextent-tree.c1303 ASSERT(btrfs_test_opt(fs_info, DEGRADED)); in btrfs_discard_extent()
2708 if (btrfs_test_opt(fs_info, SSD)) in fetch_cluster_info()
2713 btrfs_test_opt(fs_info, SSD_SPREAD)) { in fetch_cluster_info()
2841 if (btrfs_test_opt(fs_info, DISCARD_SYNC)) in btrfs_finish_extent_commit()
2852 if (btrfs_test_opt(fs_info, DISCARD_ASYNC)) { in btrfs_finish_extent_commit()
4289 } else if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in btrfs_reserve_extent()
Dvolumes.c4274 if (btrfs_test_opt(fs_info, SKIP_BALANCE)) { in btrfs_resume_balance_async()
5010 if (btrfs_test_opt(info, ENOSPC_DEBUG)) in gather_device_info()
5098 if (btrfs_test_opt(info, ENOSPC_DEBUG)) { in decide_stripe_size()
5226 if (btrfs_test_opt(info, ENOSPC_DEBUG)) in btrfs_alloc_chunk()
6722 !btrfs_test_opt(fs_info, DEGRADED)) { in read_one_chunk()
6798 if (!btrfs_test_opt(fs_info, DEGRADED)) in open_seed_devices()
6861 if (!btrfs_test_opt(fs_info, DEGRADED)) { in read_one_dev()
6877 if (!btrfs_test_opt(fs_info, DEGRADED)) { in read_one_dev()
Dctree.h1316 #define btrfs_test_opt(fs_info, opt) ((fs_info)->mount_opt & \ macro
1321 if (!btrfs_test_opt(fs_info, opt)) \
1328 if (btrfs_test_opt(fs_info, opt)) \
Dinode.c433 if (btrfs_test_opt(fs_info, FORCE_COMPRESS)) in inode_need_compress()
441 if (btrfs_test_opt(fs_info, COMPRESS) || in inode_need_compress()
716 if (!btrfs_test_opt(fs_info, FORCE_COMPRESS) && in compress_file_range()
1257 !btrfs_test_opt(fs_info, FORCE_COMPRESS)) { in cow_file_range_async()
2799 if (ret && btrfs_test_opt(fs_info, DISCARD_SYNC)) in btrfs_finish_ordered_io()
6124 if (btrfs_test_opt(fs_info, NODATASUM)) in btrfs_new_inode()
6126 if (btrfs_test_opt(fs_info, NODATACOW)) in btrfs_new_inode()
Dioctl.c525 if (btrfs_test_opt(fs_info, NOLOGREPLAY)) in btrfs_ioctl_fitrim()
3077 if (!btrfs_test_opt(fs_info, USER_SUBVOL_RM_ALLOWED)) in btrfs_ioctl_snap_destroy()
Dtree-log.c3097 if (!btrfs_test_opt(fs_info, SSD) && in btrfs_sync_log()
6114 if (btrfs_test_opt(fs_info, NOTREELOG)) { in btrfs_log_inode_parent()
Dfile.c121 if (!btrfs_test_opt(fs_info, AUTO_DEFRAG)) in __need_auto_defrag()
Dscrub.c3659 if (btrfs_test_opt(fs_info, DISCARD_ASYNC)) in scrub_enumerate_chunks()