btrfs_test_opt
if (btrfs_test_opt(bg->fs_info, ENOSPC_DEBUG)) {
if (ret == -ENOSPC && btrfs_test_opt(cache->fs_info, ENOSPC_DEBUG)) {
const bool async_trim_enabled = btrfs_test_opt(fs_info, DISCARD_ASYNC);
if (btrfs_test_opt(fs_info, DISCARD_ASYNC) &&
if (!async_trim_enabled && btrfs_test_opt(fs_info, DISCARD_ASYNC))
trimming = btrfs_test_opt(fs_info, DISCARD_SYNC) ||
if (!btrfs_test_opt(fs_info, DISCARD_ASYNC))
if (btrfs_test_opt(info, SPACE_CACHE))
if (btrfs_test_opt(info, DISCARD_ASYNC))
if (btrfs_test_opt(info, SPACE_CACHE) &&
if (btrfs_test_opt(info, CLEAR_CACHE))
if (ret && btrfs_test_opt(info, IGNOREBADROOTS))
return (btrfs_test_opt(fs_info, FRAGMENT_METADATA) &&
(btrfs_test_opt(fs_info, FRAGMENT_DATA) &&
if (!btrfs_test_opt(fs_info, SPACE_CACHE))
!btrfs_test_opt(fs_info, SPACE_CACHE)) {
!btrfs_test_opt(fs_info, SPACE_CACHE))
if (btrfs_test_opt(info, SPACE_CACHE) &&
if (!btrfs_test_opt(info, DISCARD_ASYNC))
if (left < bytes && btrfs_test_opt(fs_info, ENOSPC_DEBUG)) {
if (btrfs_test_opt(fs_info, DISCARD_ASYNC)) {
if (btrfs_test_opt(fs_info, DISCARD_ASYNC)) {
if (btrfs_test_opt(fs_info, SPACE_CACHE)) {
btrfs_test_opt(fs_info, ENOSPC_DEBUG)) {
if (!btrfs_test_opt(fs_info, AUTO_DEFRAG))
if (!btrfs_test_opt(node->root->fs_info, REF_TRACKER))
if (!btrfs_test_opt(node->root->fs_info, REF_TRACKER))
if (!btrfs_test_opt(node->root->fs_info, REF_TRACKER))
if (!btrfs_test_opt(node->root->fs_info, REF_TRACKER))
if (!btrfs_test_opt(node->root->fs_info, REF_TRACKER))
if (btrfs_test_opt(fs_info, FREE_SPACE_TREE))
if (unlikely(!dev_replace->srcdev && !btrfs_test_opt(fs_info, DEGRADED))) {
if (unlikely(!dev_replace->tgtdev && !btrfs_test_opt(fs_info, DEGRADED))) {
!btrfs_test_opt(block_group->fs_info, DISCARD_ASYNC))
if (!block_group || !btrfs_test_opt(block_group->fs_info, DISCARD_ASYNC))
!btrfs_test_opt(block_group->fs_info, DISCARD_ASYNC) ||
if (!btrfs_test_opt(fs_info, DISCARD_ASYNC)) {
!btrfs_test_opt(fs_info, DISCARD_ASYNC))
btrfs_test_opt(fs_info, IGNOREDATACSUMS)) {
if (!btrfs_test_opt(fs_info, IGNOREBADROOTS))
if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) {
if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) {
if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) {
if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) {
if (!btrfs_test_opt(fs_info, IGNOREBADROOTS)) {
const bool ignore_flags = btrfs_test_opt(fs_info, IGNORESUPERFLAGS);
if (!btrfs_test_opt(fs_info, USEBACKUPROOT))
if (btrfs_test_opt(fs_info, IGNOREMETACSUMS))
const bool cache_opt = btrfs_test_opt(fs_info, SPACE_CACHE);
if (btrfs_test_opt(fs_info, CLEAR_CACHE) &&
!btrfs_test_opt(fs_info, FREE_SPACE_TREE)) {
if (btrfs_test_opt(fs_info, FREE_SPACE_TREE) &&
!btrfs_test_opt(fs_info, NOLOGREPLAY)) {
!btrfs_test_opt(fs_info, FREE_SPACE_TREE))) {
if (fs_info->sectorsize != PAGE_SIZE && btrfs_test_opt(fs_info, SPACE_CACHE)) {
if (fs_info->uuid_root && !btrfs_test_opt(fs_info, RESCAN_UUID_TREE) &&
const bool ignore_csum = btrfs_test_opt(fs_info, IGNOREMETACSUMS);
!btrfs_test_opt(fs_info, NOLOGREPLAY)) {
(btrfs_test_opt(fs_info, RESCAN_UUID_TREE) ||
if (i == 0 && !btrfs_test_opt(device->fs_info, NOBARRIER))
do_barriers = !btrfs_test_opt(fs_info, NOBARRIER);
ASSERT(btrfs_test_opt(fs_info, DEGRADED));
if (btrfs_test_opt(fs_info, SSD))
btrfs_test_opt(fs_info, SSD_SPREAD)) {
if (btrfs_test_opt(fs_info, DISCARD_SYNC)) {
if (btrfs_test_opt(fs_info, DISCARD_ASYNC)) {
} else if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) {
if (btrfs_test_opt(block_group->fs_info, DISCARD_SYNC))
if (btrfs_test_opt(block_group->fs_info, DISCARD_SYNC) ||
btrfs_test_opt(block_group->fs_info, DISCARD_ASYNC))
if (btrfs_test_opt(fs_info, SSD_SPREAD)) {
if (!btrfs_test_opt(fs_info, FORCE_COMPRESS) && !inode->prop_compress)
if (ret && btrfs_test_opt(fs_info, DISCARD_SYNC))
if (btrfs_test_opt(fs_info, NODATASUM))
if (btrfs_test_opt(fs_info, NODATACOW))
if (btrfs_test_opt(fs_info, FORCE_COMPRESS))
if (btrfs_test_opt(fs_info, COMPRESS) ||
if (!btrfs_test_opt(fs_info, USER_SUBVOL_RM_ALLOWED))
if (btrfs_test_opt(fs_info, NOLOGREPLAY))
if (fs_info && (btrfs_test_opt(fs_info, PANIC_ON_FATAL_ERROR)))
if (!btrfs_test_opt(fs_info, REF_VERIFY))
if (!btrfs_test_opt(fs_info, REF_VERIFY))
if (!btrfs_test_opt(fs_info, REF_VERIFY))
if (!btrfs_test_opt(fs_info, REF_VERIFY))
if (btrfs_test_opt(fs_info, DISCARD_ASYNC))
if (btrfs_test_opt(fs_info, ENOSPC_DEBUG)) {
if (btrfs_test_opt(fs_info, ENOSPC_DEBUG))
if (btrfs_test_opt(fs_info, ENOSPC_DEBUG))
if (btrfs_test_opt(fs_info, ENOSPC_DEBUG))
if (btrfs_test_opt(info, DEGRADED))
if (btrfs_test_opt(info, NODATASUM))
if (btrfs_test_opt(info, NODATACOW))
if (btrfs_test_opt(info, NOBARRIER))
if (btrfs_test_opt(info, COMPRESS)) {
if (btrfs_test_opt(info, FORCE_COMPRESS))
if (btrfs_test_opt(info, NOSSD))
if (btrfs_test_opt(info, SSD_SPREAD))
else if (btrfs_test_opt(info, SSD))
if (btrfs_test_opt(info, NOTREELOG))
if (btrfs_test_opt(info, NOLOGREPLAY))
if (btrfs_test_opt(info, USEBACKUPROOT))
if (btrfs_test_opt(info, IGNOREBADROOTS))
if (btrfs_test_opt(info, IGNOREDATACSUMS))
if (btrfs_test_opt(info, IGNOREMETACSUMS))
if (btrfs_test_opt(info, IGNORESUPERFLAGS))
if (btrfs_test_opt(info, FLUSHONCOMMIT))
if (btrfs_test_opt(info, DISCARD_SYNC))
if (btrfs_test_opt(info, DISCARD_ASYNC))
if (btrfs_test_opt(info, RESCAN_UUID_TREE))
if (btrfs_test_opt(info, CLEAR_CACHE))
if (btrfs_test_opt(info, USER_SUBVOL_RM_ALLOWED))
if (btrfs_test_opt(info, ENOSPC_DEBUG))
if (btrfs_test_opt(info, AUTO_DEFRAG))
if (btrfs_test_opt(info, SKIP_BALANCE))
if (btrfs_test_opt(info, PANIC_ON_FATAL_ERROR))
if (btrfs_test_opt(info, FRAGMENT_DATA))
if (btrfs_test_opt(info, FRAGMENT_METADATA))
if (btrfs_test_opt(info, REF_VERIFY))
if (btrfs_test_opt(info, REF_TRACKER))
const bool cache_opt = btrfs_test_opt(fs_info, SPACE_CACHE);
btrfs_test_opt(fs_info, DISCARD_ASYNC))
!btrfs_test_opt(fs_info, DISCARD_ASYNC))
if (btrfs_test_opt(info, COMPRESS) &&
btrfs_test_opt(info, FORCE_COMPRESS) ? "force" : "use",
if ((bool)btrfs_test_opt(fs_info, FREE_SPACE_TREE) !=
if (fs_info->sectorsize != PAGE_SIZE && btrfs_test_opt(fs_info, SPACE_CACHE)) {
if (btrfs_test_opt(fs_info, FREE_SPACE_TREE))
if (btrfs_test_opt(fs_info, SPACE_CACHE))
if (btrfs_test_opt(fs_info, NOSPACECACHE))
if (!btrfs_test_opt(fs_info, NOSSD) &&
if (!(btrfs_test_opt(fs_info, DISCARD_SYNC) ||
btrfs_test_opt(fs_info, DISCARD_ASYNC) ||
btrfs_test_opt(fs_info, NODISCARD)) &&
if (btrfs_test_opt(fs_info, SPACE_CACHE))
if (btrfs_test_opt(fs_info, FLUSHONCOMMIT))
if (btrfs_test_opt(fs_info, FLUSHONCOMMIT))
if (!btrfs_test_opt(fs_info, SSD) &&
if (btrfs_test_opt(fs_info, NOTREELOG))
if (btrfs_test_opt(fs_info, SKIP_BALANCE)) {
if (btrfs_test_opt(info, ENOSPC_DEBUG))
if (btrfs_test_opt(info, ENOSPC_DEBUG)) {
if (btrfs_test_opt(info, ENOSPC_DEBUG))
if (!btrfs_test_opt(fs_info, DEGRADED)) {
if (!btrfs_test_opt(fs_info, DEGRADED)) {
if (!btrfs_test_opt(fs_info, DEGRADED)) {
if (!btrfs_test_opt(fs_info, DEGRADED)) {
if (btrfs_test_opt(fs_info, IGNOREBADROOTS))
if (btrfs_test_opt(fs_info, DEGRADED))
!btrfs_test_opt(fs_info, DEGRADED))) {
if (unlikely(!btrfs_test_opt(fs_info, DEGRADED) &&