Lines Matching defs:sectorsize

550 	if (fs_info->sectorsize == PAGE_SIZE) {
574 cur = page_start + cur_bit * fs_info->sectorsize;
731 /* We don't use the stripesize in selftest, set it as sectorsize */
2322 * to use super block sectorsize, which should have been validated.
2324 const u32 sectorsize = btrfs_super_sectorsize(sb);
2368 sectorsize);
2395 u64 sectorsize = btrfs_super_sectorsize(sb);
2432 * Check sectorsize and nodesize first, other check will need it.
2433 * Check all possible sectorsize(4K, 8K, 16K, 32K, 64K) here.
2435 if (!is_power_of_2(sectorsize) || sectorsize < BTRFS_MIN_BLOCKSIZE ||
2436 sectorsize > BTRFS_MAX_METADATA_BLOCKSIZE) {
2437 btrfs_err(fs_info, "invalid sectorsize %llu", sectorsize);
2448 * We can support 16K sectorsize with 64K page size without problem,
2449 * but such sectorsize/pagesize combination doesn't make much sense.
2453 if (sectorsize > PAGE_SIZE || (sectorsize != SZ_4K &&
2454 sectorsize != PAGE_SIZE &&
2455 sectorsize != BTRFS_MIN_BLOCKSIZE)) {
2457 "sectorsize %llu not yet supported for page size %lu",
2458 sectorsize, PAGE_SIZE);
2462 if (!is_power_of_2(nodesize) || nodesize < sectorsize ||
2474 if (!IS_ALIGNED(btrfs_super_root(sb), sectorsize)) {
2479 if (!IS_ALIGNED(btrfs_super_chunk_root(sb), sectorsize)) {
2484 if (!IS_ALIGNED(btrfs_super_log_root(sb), sectorsize)) {
2895 fs_info->sectorsize = 4096;
3203 (fs_info->sectorsize != fs_info->nodesize)) {
3205 "unequal nodesize/sectorsize (%u != %u) are not allowed for mixed block groups",
3206 fs_info->nodesize, fs_info->sectorsize);
3265 if (fs_info->sectorsize < PAGE_SIZE && btrfs_test_opt(fs_info, SPACE_CACHE)) {
3267 "v1 space cache is not supported for page size %lu with sectorsize %u",
3268 PAGE_SIZE, fs_info->sectorsize);
3282 u32 sectorsize;
3390 sectorsize = btrfs_super_sectorsize(disk_super);
3391 stripesize = sectorsize;
3393 fs_info->delalloc_batch = sectorsize * 512 * (1 + ilog2(nr_cpu_ids));
3397 fs_info->sectorsize = sectorsize;
3398 fs_info->sectorsize_bits = ilog2(sectorsize);
3420 * to something non-standard make sure we truncate it to sectorsize.
3422 fs_info->max_inline = min_t(u64, fs_info->max_inline, fs_info->sectorsize);
3432 sb->s_blocksize = sectorsize;
3433 sb->s_blocksize_bits = blksize_bits(sectorsize);