Lines Matching refs:sectorsize

558 	if (fs_info->sectorsize == PAGE_SIZE) {  in btree_dirty_folio()
582 cur = page_start + cur_bit * fs_info->sectorsize; in btree_dirty_folio()
2345 u64 sectorsize = btrfs_super_sectorsize(sb); in btrfs_validate_super() local
2385 if (!is_power_of_2(sectorsize) || sectorsize < 4096 || in btrfs_validate_super()
2386 sectorsize > BTRFS_MAX_METADATA_BLOCKSIZE) { in btrfs_validate_super()
2387 btrfs_err(fs_info, "invalid sectorsize %llu", sectorsize); in btrfs_validate_super()
2399 if (sectorsize > PAGE_SIZE || (sectorsize != SZ_4K && sectorsize != PAGE_SIZE)) { in btrfs_validate_super()
2402 sectorsize, PAGE_SIZE); in btrfs_validate_super()
2406 if (!is_power_of_2(nodesize) || nodesize < sectorsize || in btrfs_validate_super()
2418 if (!IS_ALIGNED(btrfs_super_root(sb), sectorsize)) { in btrfs_validate_super()
2423 if (!IS_ALIGNED(btrfs_super_chunk_root(sb), sectorsize)) { in btrfs_validate_super()
2428 if (!IS_ALIGNED(btrfs_super_log_root(sb), sectorsize)) { in btrfs_validate_super()
2822 fs_info->sectorsize = 4096; in btrfs_init_fs_info()
3128 (fs_info->sectorsize != fs_info->nodesize)) { in btrfs_check_features()
3131 fs_info->nodesize, fs_info->sectorsize); in btrfs_check_features()
3190 if (fs_info->sectorsize < PAGE_SIZE && btrfs_test_opt(fs_info, SPACE_CACHE)) { in btrfs_check_features()
3193 PAGE_SIZE, fs_info->sectorsize); in btrfs_check_features()
3208 u32 sectorsize; in open_ctree() local
3316 sectorsize = btrfs_super_sectorsize(disk_super); in open_ctree()
3317 stripesize = sectorsize; in open_ctree()
3319 fs_info->delalloc_batch = sectorsize * 512 * (1 + ilog2(nr_cpu_ids)); in open_ctree()
3322 fs_info->sectorsize = sectorsize; in open_ctree()
3323 fs_info->sectorsize_bits = ilog2(sectorsize); in open_ctree()
3347 fs_info->max_inline = min_t(u64, fs_info->max_inline, fs_info->sectorsize); in open_ctree()
3349 if (sectorsize < PAGE_SIZE) in open_ctree()
3352 sectorsize, PAGE_SIZE); in open_ctree()
3362 sb->s_blocksize = sectorsize; in open_ctree()
3363 sb->s_blocksize_bits = blksize_bits(sectorsize); in open_ctree()