Lines Matching defs:allowed
948 * 2b must not be allowed at all time.
1401 * and we are not allowed to call set_blocksize during the scan. The superblock
3913 * Validate target profile against allowed profiles and return true if it's OK.
3918 u64 allowed, const char *type)
3923 /* Profile is valid and does not have bits outside of the allowed set */
3925 (bargs->target & ~allowed) == 0)
4095 u64 allowed;
4110 allowed = btrfs_super_incompat_flags(fs_info->super_copy);
4111 if (allowed & BTRFS_FEATURE_INCOMPAT_MIXED_GROUPS)
4118 allowed = BTRFS_BALANCE_DATA | BTRFS_BALANCE_METADATA;
4119 if (mixed && (bctl->flags & allowed)) {
4141 allowed = BTRFS_AVAIL_ALLOC_BIT_SINGLE;
4144 allowed |= btrfs_raid_array[i].bg_flag;
4146 if (!validate_convert_profile(fs_info, &bctl->data, allowed, "data") ||
4147 !validate_convert_profile(fs_info, &bctl->meta, allowed, "metadata") ||
4148 !validate_convert_profile(fs_info, &bctl->sys, allowed, "system")) {
4157 allowed = 0;
4161 allowed |= btrfs_raid_array[i].bg_flag;
4167 (fs_info->avail_system_alloc_bits & allowed) &&
4168 !(bctl->sys.target & allowed)) ||
4170 (fs_info->avail_metadata_alloc_bits & allowed) &&
4171 !(bctl->meta.target & allowed)))