Home
last modified time | relevance | path

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

/fs/btrfs/
Dsuper.c282 if (fs_info && (btrfs_test_opt(fs_info, PANIC_ON_FATAL_ERROR))) in __btrfs_panic()
481 if (btrfs_test_opt(info, NODATASUM)) { in btrfs_parse_options()
482 if (btrfs_test_opt(info, NODATACOW)) in btrfs_parse_options()
492 if (!btrfs_test_opt(info, NODATACOW)) { in btrfs_parse_options()
493 if (!btrfs_test_opt(info, COMPRESS) || in btrfs_parse_options()
494 !btrfs_test_opt(info, FORCE_COMPRESS)) { in btrfs_parse_options()
516 saved_compress_type = btrfs_test_opt(info, in btrfs_parse_options()
520 btrfs_test_opt(info, FORCE_COMPRESS); in btrfs_parse_options()
732 if (btrfs_test_opt(info, SPACE_CACHE)) { in btrfs_parse_options()
736 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()
190 if (!btrfs_test_opt(root->fs_info, INODE_MAP_CACHE)) in btrfs_find_free_ino()
220 if (!btrfs_test_opt(fs_info, INODE_MAP_CACHE)) in btrfs_return_ino()
260 if (!btrfs_test_opt(root->fs_info, INODE_MAP_CACHE)) in btrfs_unpin_free_ino()
421 if (!btrfs_test_opt(fs_info, INODE_MAP_CACHE)) in btrfs_save_ino_cache()
Dblock-group.h166 return (btrfs_test_opt(fs_info, FRAGMENT_METADATA) && in btrfs_should_fragment_free_space()
168 (btrfs_test_opt(fs_info, FRAGMENT_DATA) && in btrfs_should_fragment_free_space()
Dblock-group.c746 if (btrfs_test_opt(fs_info, SPACE_CACHE)) { in btrfs_cache_block_group()
1059 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in btrfs_remove_block_group()
1259 if (ret == -ENOSPC && btrfs_test_opt(cache->fs_info, ENOSPC_DEBUG)) { in inc_block_group_ro()
1392 trimming = btrfs_test_opt(fs_info, DISCARD); in btrfs_delete_unused_bgs()
1740 if (btrfs_test_opt(info, SPACE_CACHE) && in btrfs_read_block_groups()
1743 if (btrfs_test_opt(info, CLEAR_CACHE)) in btrfs_read_block_groups()
1774 if (btrfs_test_opt(info, SPACE_CACHE)) in btrfs_read_block_groups()
2273 !btrfs_test_opt(fs_info, SPACE_CACHE)) { in cache_save_setup()
2351 !btrfs_test_opt(fs_info, SPACE_CACHE)) in btrfs_setup_space_cache()
2716 if (btrfs_test_opt(info, SPACE_CACHE) && in btrfs_update_block_group()
[all …]
Dref-verify.c688 if (!btrfs_test_opt(fs_info, REF_VERIFY)) in btrfs_ref_tree_mod()
904 if (!btrfs_test_opt(fs_info, REF_VERIFY)) in btrfs_free_ref_cache()
923 if (!btrfs_test_opt(fs_info, REF_VERIFY)) in btrfs_free_ref_tree_range()
989 if (!btrfs_test_opt(fs_info, REF_VERIFY)) in btrfs_build_ref_tree()
Ddisk-io.c2993 !btrfs_test_opt(fs_info, NOLOGREPLAY))) { in open_ctree()
3113 if (fs_info->uuid_root && !btrfs_test_opt(fs_info, RESCAN_UUID_TREE) && in open_ctree()
3194 if (!btrfs_test_opt(fs_info, NOSSD) && in open_ctree()
3206 if (btrfs_test_opt(fs_info, CHECK_INTEGRITY)) { in open_ctree()
3208 btrfs_test_opt(fs_info, in open_ctree()
3227 !btrfs_test_opt(fs_info, NOLOGREPLAY)) { in open_ctree()
3271 if (btrfs_test_opt(fs_info, CLEAR_CACHE) && in open_ctree()
3291 if (btrfs_test_opt(fs_info, FREE_SPACE_TREE) && in open_ctree()
3337 } else if (btrfs_test_opt(fs_info, RESCAN_UUID_TREE) || in open_ctree()
3413 if (!btrfs_test_opt(fs_info, USEBACKUPROOT)) in open_ctree()
[all …]
Dspace-info.c740 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in maybe_fail_all_tickets()
769 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) in maybe_fail_all_tickets()
1144 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) in btrfs_reserve_metadata_bytes()
Ddev-replace.c147 !btrfs_test_opt(fs_info, DEGRADED)) { in btrfs_init_dev_replace()
156 !btrfs_test_opt(fs_info, DEGRADED)) { in btrfs_init_dev_replace()
Dblock-rsv.c416 btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in btrfs_use_block_rsv()
Dtransaction.c1694 if (btrfs_test_opt(fs_info, SPACE_CACHE)) in update_super_roots()
1904 if (btrfs_test_opt(fs_info, FLUSHONCOMMIT)) { in btrfs_start_delalloc_flush()
1932 if (btrfs_test_opt(fs_info, FLUSHONCOMMIT)) { in btrfs_wait_delalloc_flush()
Dextent-tree.c1350 ASSERT(btrfs_test_opt(fs_info, DEGRADED)); in btrfs_discard_extent()
2807 if (btrfs_test_opt(fs_info, SSD)) in fetch_cluster_info()
2812 btrfs_test_opt(fs_info, SSD_SPREAD)) { in fetch_cluster_info()
2942 if (btrfs_test_opt(fs_info, DISCARD)) in btrfs_finish_extent_commit()
4173 } else if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in btrfs_reserve_extent()
4206 if (btrfs_test_opt(fs_info, DISCARD)) in __btrfs_free_reserved_extent()
Dvolumes.c4418 if (btrfs_test_opt(fs_info, SKIP_BALANCE)) { in btrfs_resume_balance_async()
5121 if (btrfs_test_opt(info, ENOSPC_DEBUG)) in __btrfs_alloc_chunk()
5206 if (btrfs_test_opt(info, ENOSPC_DEBUG)) in __btrfs_alloc_chunk()
5237 if (btrfs_test_opt(info, ENOSPC_DEBUG)) { in __btrfs_alloc_chunk()
6984 !btrfs_test_opt(fs_info, DEGRADED)) { in read_one_chunk()
7062 if (!btrfs_test_opt(fs_info, DEGRADED)) in open_seed_devices()
7124 if (!btrfs_test_opt(fs_info, DEGRADED)) { in read_one_dev()
7140 if (!btrfs_test_opt(fs_info, DEGRADED)) { in read_one_dev()
Dctree.h1202 #define btrfs_test_opt(fs_info, opt) ((fs_info)->mount_opt & \ macro
1207 if (!btrfs_test_opt(fs_info, opt)) \
1214 if (btrfs_test_opt(fs_info, opt)) \
Dfree-space-cache.c3082 if (btrfs_test_opt(fs_info, SSD_SPREAD)) { in btrfs_find_space_cluster()
3522 if (!btrfs_test_opt(fs_info, INODE_MAP_CACHE)) in load_free_ino_cache()
3567 if (!btrfs_test_opt(fs_info, INODE_MAP_CACHE)) in btrfs_write_out_ino_cache()
Dinode.c429 if (btrfs_test_opt(fs_info, FORCE_COMPRESS)) in inode_need_compress()
437 if (btrfs_test_opt(fs_info, COMPRESS) || in inode_need_compress()
710 if (!btrfs_test_opt(fs_info, FORCE_COMPRESS) && in compress_file_range()
1251 !btrfs_test_opt(fs_info, FORCE_COMPRESS)) { in cow_file_range_async()
6681 if (btrfs_test_opt(fs_info, NODATASUM)) in btrfs_new_inode()
6683 if (btrfs_test_opt(fs_info, NODATACOW)) in btrfs_new_inode()
Dioctl.c517 if (btrfs_test_opt(fs_info, NOLOGREPLAY)) in btrfs_ioctl_fitrim()
3010 if (!btrfs_test_opt(fs_info, USER_SUBVOL_RM_ALLOWED)) in btrfs_ioctl_snap_destroy()
Dtree-log.c3119 if (!btrfs_test_opt(fs_info, SSD) && in btrfs_sync_log()
6091 if (btrfs_test_opt(fs_info, NOTREELOG)) { in btrfs_log_inode_parent()
Dfile.c120 if (!btrfs_test_opt(fs_info, AUTO_DEFRAG)) in __need_auto_defrag()