Lines Matching refs:sectorsize

867 	if (fs_info->sectorsize == PAGE_SIZE) {  in btree_dirty_folio()
890 cur = page_start + cur_bit * fs_info->sectorsize; in btree_dirty_folio()
2623 u64 sectorsize = btrfs_super_sectorsize(sb); in btrfs_validate_super() local
2655 if (!is_power_of_2(sectorsize) || sectorsize < 4096 || in btrfs_validate_super()
2656 sectorsize > BTRFS_MAX_METADATA_BLOCKSIZE) { in btrfs_validate_super()
2657 btrfs_err(fs_info, "invalid sectorsize %llu", sectorsize); in btrfs_validate_super()
2669 if (sectorsize > PAGE_SIZE || (sectorsize != SZ_4K && sectorsize != PAGE_SIZE)) { in btrfs_validate_super()
2672 sectorsize, PAGE_SIZE); in btrfs_validate_super()
2676 if (!is_power_of_2(nodesize) || nodesize < sectorsize || in btrfs_validate_super()
2688 if (!IS_ALIGNED(btrfs_super_root(sb), sectorsize)) { in btrfs_validate_super()
2693 if (!IS_ALIGNED(btrfs_super_chunk_root(sb), sectorsize)) { in btrfs_validate_super()
2698 if (!IS_ALIGNED(btrfs_super_log_root(sb), sectorsize)) { in btrfs_validate_super()
3095 fs_info->sectorsize = 4096; in btrfs_init_fs_info()
3334 (fs_info->sectorsize != fs_info->nodesize)) { in btrfs_check_features()
3337 fs_info->nodesize, fs_info->sectorsize); in btrfs_check_features()
3396 if (fs_info->sectorsize < PAGE_SIZE && btrfs_test_opt(fs_info, SPACE_CACHE)) { in btrfs_check_features()
3399 PAGE_SIZE, fs_info->sectorsize); in btrfs_check_features()
3414 u32 sectorsize; in open_ctree() local
3543 sectorsize = btrfs_super_sectorsize(disk_super); in open_ctree()
3544 stripesize = sectorsize; in open_ctree()
3546 fs_info->delalloc_batch = sectorsize * 512 * (1 + ilog2(nr_cpu_ids)); in open_ctree()
3549 fs_info->sectorsize = sectorsize; in open_ctree()
3550 fs_info->sectorsize_bits = ilog2(sectorsize); in open_ctree()
3566 if (sectorsize < PAGE_SIZE) { in open_ctree()
3578 sectorsize, PAGE_SIZE); in open_ctree()
3582 sectorsize, PAGE_SIZE); in open_ctree()
3586 btrfs_init_subpage_info(subpage_info, sectorsize); in open_ctree()
3599 sb->s_blocksize = sectorsize; in open_ctree()
3600 sb->s_blocksize_bits = blksize_bits(sectorsize); in open_ctree()