Lines Matching refs:sectorsize
129 end = ALIGN(key->offset + len, leaf->fs_info->sectorsize); in file_extent_end()
212 u32 sectorsize = fs_info->sectorsize; in check_extent_data_item() local
216 if (unlikely(!IS_ALIGNED(key->offset, sectorsize))) { in check_extent_data_item()
219 key->offset, sectorsize); in check_extent_data_item()
305 if (unlikely(CHECK_FE_ALIGNED(leaf, slot, fi, ram_bytes, sectorsize) || in check_extent_data_item()
306 CHECK_FE_ALIGNED(leaf, slot, fi, disk_bytenr, sectorsize) || in check_extent_data_item()
307 CHECK_FE_ALIGNED(leaf, slot, fi, disk_num_bytes, sectorsize) || in check_extent_data_item()
308 CHECK_FE_ALIGNED(leaf, slot, fi, offset, sectorsize) || in check_extent_data_item()
309 CHECK_FE_ALIGNED(leaf, slot, fi, num_bytes, sectorsize))) in check_extent_data_item()
368 u32 sectorsize = fs_info->sectorsize; in check_csum_item() local
377 if (unlikely(!IS_ALIGNED(key->offset, sectorsize))) { in check_csum_item()
380 key->offset, sectorsize); in check_csum_item()
394 prev_csum_end = (prev_item_size / csumsize) * sectorsize; in check_csum_item()
860 if (unlikely(!IS_ALIGNED(logical, fs_info->sectorsize))) { in btrfs_check_chunk_valid()
863 logical, fs_info->sectorsize); in btrfs_check_chunk_valid()
866 if (unlikely(btrfs_chunk_sector_size(leaf, chunk) != fs_info->sectorsize)) { in btrfs_check_chunk_valid()
870 fs_info->sectorsize); in btrfs_check_chunk_valid()
873 if (unlikely(!length || !IS_ALIGNED(length, fs_info->sectorsize))) { in btrfs_check_chunk_valid()
1232 if (unlikely(!IS_ALIGNED(btrfs_root_bytenr(&ri), fs_info->sectorsize))) { in check_root_item()
1235 btrfs_root_bytenr(&ri), fs_info->sectorsize); in check_root_item()
1330 if (unlikely(!IS_ALIGNED(key->objectid, fs_info->sectorsize))) { in check_extent_item()
1333 key->objectid, fs_info->sectorsize); in check_extent_item()
1423 if (unlikely(!IS_ALIGNED(key->offset, fs_info->sectorsize))) { in check_extent_item()
1426 key->offset, fs_info->sectorsize); in check_extent_item()
1489 fs_info->sectorsize))) { in check_extent_item()
1492 inline_offset, fs_info->sectorsize); in check_extent_item()
1524 fs_info->sectorsize))) { in check_extent_item()
1527 dref_offset, fs_info->sectorsize); in check_extent_item()
1536 fs_info->sectorsize))) { in check_extent_item()
1539 inline_offset, fs_info->sectorsize); in check_extent_item()
1624 if (unlikely(!IS_ALIGNED(key->objectid, leaf->fs_info->sectorsize))) { in check_simple_keyed_refs()
1627 key->objectid, leaf->fs_info->sectorsize); in check_simple_keyed_refs()
1631 !IS_ALIGNED(key->offset, leaf->fs_info->sectorsize))) { in check_simple_keyed_refs()
1634 key->offset, leaf->fs_info->sectorsize); in check_simple_keyed_refs()
1654 if (unlikely(!IS_ALIGNED(key->objectid, leaf->fs_info->sectorsize))) { in check_extent_data_ref()
1657 key->objectid, leaf->fs_info->sectorsize); in check_extent_data_ref()
1686 if (unlikely(!IS_ALIGNED(offset, leaf->fs_info->sectorsize))) { in check_extent_data_ref()
1689 offset, leaf->fs_info->sectorsize); in check_extent_data_ref()
1751 if (unlikely(!IS_ALIGNED(key->objectid, leaf->fs_info->sectorsize))) { in check_raid_stripe_extent()
1754 key->objectid, leaf->fs_info->sectorsize); in check_raid_stripe_extent()
1773 const u32 sectorsize = leaf->fs_info->sectorsize; in check_dev_extent_item() local
1794 if (unlikely(!IS_ALIGNED(key->offset, sectorsize))) { in check_dev_extent_item()
1797 key->offset, sectorsize); in check_dev_extent_item()
1801 sectorsize))) { in check_dev_extent_item()
1805 sectorsize); in check_dev_extent_item()
1809 sectorsize))) { in check_dev_extent_item()
1812 btrfs_dev_extent_length(leaf, de), sectorsize); in check_dev_extent_item()
2101 if (unlikely(!IS_ALIGNED(bytenr, fs_info->sectorsize))) { in __btrfs_check_node()
2104 bytenr, fs_info->sectorsize); in __btrfs_check_node()