Home
last modified time | relevance | path

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

/Linux-v5.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()
825 if (btrfs_test_opt(info, SPACE_CACHE)) { in btrfs_parse_options()
829 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.c252 !btrfs_test_opt(block_group->fs_info, DISCARD_ASYNC)) in btrfs_discard_check_filter()
321 if (!block_group || !btrfs_test_opt(block_group->fs_info, DISCARD_ASYNC)) in btrfs_discard_queue_work()
580 !btrfs_test_opt(block_group->fs_info, DISCARD_ASYNC) || in btrfs_discard_update_discardable()
660 if (!btrfs_test_opt(fs_info, DISCARD_ASYNC)) { in btrfs_discard_resume()
Dblock-group.h210 return (btrfs_test_opt(fs_info, FRAGMENT_METADATA) && in btrfs_should_fragment_free_space()
212 (btrfs_test_opt(fs_info, FRAGMENT_DATA) && in btrfs_should_fragment_free_space()
Dblock-group.c735 if (btrfs_test_opt(fs_info, SPACE_CACHE)) { in btrfs_cache_block_group()
1078 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in btrfs_remove_block_group()
1268 if (ret == -ENOSPC && btrfs_test_opt(cache->fs_info, ENOSPC_DEBUG)) { in inc_block_group_ro()
1330 const bool async_trim_enabled = btrfs_test_opt(fs_info, DISCARD_ASYNC); in btrfs_delete_unused_bgs()
1365 if (btrfs_test_opt(fs_info, DISCARD_ASYNC) && in btrfs_delete_unused_bgs()
1460 if (!async_trim_enabled && btrfs_test_opt(fs_info, DISCARD_ASYNC)) in btrfs_delete_unused_bgs()
1464 trimming = btrfs_test_opt(fs_info, DISCARD_SYNC); in btrfs_delete_unused_bgs()
1917 if (btrfs_test_opt(info, SPACE_CACHE)) in read_one_block_group()
1977 if (btrfs_test_opt(info, DISCARD_ASYNC)) in read_one_block_group()
2006 if (btrfs_test_opt(info, SPACE_CACHE) && in btrfs_read_block_groups()
[all …]
Dspace-info.c865 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in maybe_fail_all_tickets()
894 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) in maybe_fail_all_tickets()
1441 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) in btrfs_reserve_metadata_bytes()
1471 if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) in btrfs_reserve_data_bytes()
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()
Ddisk-io.c2608 if (!btrfs_test_opt(fs_info, USEBACKUPROOT)) in init_tree_roots()
3159 if (fs_info->uuid_root && !btrfs_test_opt(fs_info, RESCAN_UUID_TREE) && in open_ctree()
3232 if (!btrfs_test_opt(fs_info, NOSSD) && in open_ctree()
3244 if (btrfs_test_opt(fs_info, CHECK_INTEGRITY)) { in open_ctree()
3246 btrfs_test_opt(fs_info, in open_ctree()
3265 !btrfs_test_opt(fs_info, NOLOGREPLAY)) { in open_ctree()
3305 if (btrfs_test_opt(fs_info, CLEAR_CACHE) && in open_ctree()
3325 if (btrfs_test_opt(fs_info, FREE_SPACE_TREE) && in open_ctree()
3372 } else if (btrfs_test_opt(fs_info, RESCAN_UUID_TREE) || in open_ctree()
3602 if (i == 0 && !btrfs_test_opt(device->fs_info, NOBARRIER)) in write_dev_supers()
[all …]
Dfree-space-cache.c762 if (btrfs_test_opt(fs_info, DISCARD_SYNC) || in __load_free_space_cache()
763 btrfs_test_opt(fs_info, DISCARD_ASYNC)) in __load_free_space_cache()
2532 if (btrfs_test_opt(block_group->fs_info, DISCARD_SYNC)) in btrfs_add_free_space()
2550 if (btrfs_test_opt(block_group->fs_info, DISCARD_SYNC) || in btrfs_add_free_space_async_trimmed()
2551 btrfs_test_opt(block_group->fs_info, DISCARD_ASYNC)) in btrfs_add_free_space_async_trimmed()
3310 if (btrfs_test_opt(fs_info, SSD_SPREAD)) { in btrfs_find_space_cluster()
3922 if (!btrfs_test_opt(fs_info, INODE_MAP_CACHE)) in load_free_ino_cache()
3967 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.c1762 if (btrfs_test_opt(fs_info, SPACE_CACHE)) in update_super_roots()
1972 if (btrfs_test_opt(fs_info, FLUSHONCOMMIT)) { in btrfs_start_delalloc_flush()
2000 if (btrfs_test_opt(fs_info, FLUSHONCOMMIT)) { in btrfs_wait_delalloc_flush()
Dvolumes.c4214 if (btrfs_test_opt(fs_info, SKIP_BALANCE)) { in btrfs_resume_balance_async()
4948 if (btrfs_test_opt(info, ENOSPC_DEBUG)) in gather_device_info()
5036 if (btrfs_test_opt(info, ENOSPC_DEBUG)) { in decide_stripe_size()
5164 if (btrfs_test_opt(info, ENOSPC_DEBUG)) in btrfs_alloc_chunk()
6660 !btrfs_test_opt(fs_info, DEGRADED)) { in read_one_chunk()
6736 if (!btrfs_test_opt(fs_info, DEGRADED)) in open_seed_devices()
6799 if (!btrfs_test_opt(fs_info, DEGRADED)) { in read_one_dev()
6815 if (!btrfs_test_opt(fs_info, DEGRADED)) { in read_one_dev()
Dextent-tree.c1337 ASSERT(btrfs_test_opt(fs_info, DEGRADED)); in btrfs_discard_extent()
2774 if (btrfs_test_opt(fs_info, SSD)) in fetch_cluster_info()
2779 btrfs_test_opt(fs_info, SSD_SPREAD)) { in fetch_cluster_info()
2908 if (btrfs_test_opt(fs_info, DISCARD_SYNC)) in btrfs_finish_extent_commit()
2919 if (btrfs_test_opt(fs_info, DISCARD_ASYNC)) { in btrfs_finish_extent_commit()
4372 } else if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) { in btrfs_reserve_extent()
Dctree.h1308 #define btrfs_test_opt(fs_info, opt) ((fs_info)->mount_opt & \ macro
1313 if (!btrfs_test_opt(fs_info, opt)) \
1320 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()
1258 !btrfs_test_opt(fs_info, FORCE_COMPRESS)) { in cow_file_range_async()
2788 if (ret && btrfs_test_opt(fs_info, DISCARD_SYNC)) in btrfs_finish_ordered_io()
6105 if (btrfs_test_opt(fs_info, NODATASUM)) in btrfs_new_inode()
6107 if (btrfs_test_opt(fs_info, NODATACOW)) in btrfs_new_inode()
Dioctl.c525 if (btrfs_test_opt(fs_info, NOLOGREPLAY)) in btrfs_ioctl_fitrim()
3006 if (!btrfs_test_opt(fs_info, USER_SUBVOL_RM_ALLOWED)) in btrfs_ioctl_snap_destroy()
Dtree-log.c3050 if (!btrfs_test_opt(fs_info, SSD) && in btrfs_sync_log()
6027 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.c3652 if (btrfs_test_opt(fs_info, DISCARD_ASYNC)) in scrub_enumerate_chunks()