Lines Matching refs:SECTOR_SHIFT
59 #define SUPER_INFO_SECTORS ((u64)BTRFS_SUPER_INFO_SIZE >> SECTOR_SHIFT)
109 *wp_ret = zones[0].start << SECTOR_SHIFT; in sb_write_pointer()
122 << SECTOR_SHIFT) - BTRFS_SUPER_INFO_SIZE; in sb_write_pointer()
148 *wp_ret = sector << SECTOR_SHIFT; in sb_write_pointer()
191 const sector_t zone_sectors = device->fs_info->zone_size >> SECTOR_SHIFT; in emulate_report_zones()
195 pos >>= SECTOR_SHIFT; in emulate_report_zones()
227 ret = blkdev_report_zones(device->bdev, pos >> SECTOR_SHIFT, *nr_zones, in btrfs_get_dev_zones()
350 zone_sectors = fs_info->zone_size >> SECTOR_SHIFT; in btrfs_get_dev_zone_info()
357 zone_info->zone_size = zone_sectors << SECTOR_SHIFT; in btrfs_get_dev_zone_info()
414 ret = btrfs_get_dev_zones(device, sector << SECTOR_SHIFT, zones, in btrfs_get_dev_zone_info()
713 *bytenr_ret = zones[0].start << SECTOR_SHIFT; in sb_log_location()
724 if (wp == zones[0].start << SECTOR_SHIFT) in sb_log_location()
726 else if (wp == zones[1].start << SECTOR_SHIFT) in sb_log_location()
748 if (wp == zones[0].start << SECTOR_SHIFT) in sb_log_location()
750 else if (wp == zones[1].start << SECTOR_SHIFT) in sb_log_location()
753 wp = ALIGN_DOWN(zone_end << SECTOR_SHIFT, in sb_log_location()
789 sb_zone = sb_zone_number(zone_sectors_shift + SECTOR_SHIFT, mirror); in btrfs_sb_log_location_bdev()
913 sb_zone = sb_zone_number(zone_sectors_shift + SECTOR_SHIFT, mirror); in btrfs_reset_sb_log_zones()
1034 physical >> SECTOR_SHIFT, length >> SECTOR_SHIFT, in btrfs_reset_device_zone()
1278 zone.start << SECTOR_SHIFT, in btrfs_load_block_group_zone_info()
1284 caps[i] = (zone.capacity << SECTOR_SHIFT); in btrfs_load_block_group_zone_info()
1304 ((zone.wp - zone.start) << SECTOR_SHIFT); in btrfs_load_block_group_zone_info()
1517 const u64 physical = bio->bi_iter.bi_sector << SECTOR_SHIFT; in btrfs_record_physical_zoned()
1631 return blkdev_issue_zeroout(device->bdev, physical >> SECTOR_SHIFT, in btrfs_zoned_issue_zeroout()
1632 length >> SECTOR_SHIFT, GFP_NOFS, 0); in btrfs_zoned_issue_zeroout()
1696 wp = physical_start + ((zone.wp - zone.start) << SECTOR_SHIFT); in btrfs_sync_zone_write_pointer()
1867 physical >> SECTOR_SHIFT, in btrfs_zone_finish()
1868 device->zone_info->zone_size >> SECTOR_SHIFT, in btrfs_zone_finish()