Lines Matching refs:sb_start

891 		rdev->sb_start = 0;  in md_rdev_clear()
986 bio.bi_iter.bi_sector = sector + rdev->sb_start; in sync_page_io()
1169 rdev->sb_start = calc_dev_sboffset(rdev); in super_90_load()
1246 rdev->sectors = rdev->sb_start; in super_90_load()
1545 rdev->sb_start = calc_dev_sboffset(rdev); in super_90_rdev_size_change()
1546 if (!num_sectors || num_sectors > rdev->sb_start) in super_90_rdev_size_change()
1547 num_sectors = rdev->sb_start; in super_90_rdev_size_change()
1554 md_super_write(rdev->mddev, rdev, rdev->sb_start, rdev->sb_size, in super_90_rdev_size_change()
1597 sector_t sb_start; in super_1_load() local
1612 sb_start = bdev_nr_sectors(rdev->bdev) - 8 * 2; in super_1_load()
1613 sb_start &= ~(sector_t)(4*2-1); in super_1_load()
1616 sb_start = 0; in super_1_load()
1619 sb_start = 8; in super_1_load()
1624 rdev->sb_start = sb_start; in super_1_load()
1637 le64_to_cpu(sb->super_offset) != rdev->sb_start || in super_1_load()
1671 && rdev->data_offset < sb_start + (rdev->sb_size/512)) in super_1_load()
1674 && rdev->new_data_offset < sb_start + (rdev->sb_size/512)) in super_1_load()
1726 rdev->ppl.sector = rdev->sb_start + rdev->ppl.offset; in super_1_load()
1770 sectors = rdev->sb_start; in super_1_load()
2064 bb->sector = (rdev->sb_start + in super_1_sync()
2145 if (rdev->sb_start < rdev->data_offset) { in super_1_rdev_size_change()
2155 sector_t sb_start, bm_space; in super_1_rdev_size_change() local
2159 sb_start = dev_size - 8*2; in super_1_rdev_size_change()
2160 sb_start &= ~(sector_t)(4*2 - 1); in super_1_rdev_size_change()
2167 max_sectors = sb_start - bm_space - 4*2; in super_1_rdev_size_change()
2171 rdev->sb_start = sb_start; in super_1_rdev_size_change()
2175 sb->super_offset = cpu_to_le64(rdev->sb_start); in super_1_rdev_size_change()
2178 md_super_write(rdev->mddev, rdev, rdev->sb_start, rdev->sb_size, in super_1_rdev_size_change()
2205 if (rdev->sb_start + (32+4)*2 > new_offset) in super_1_allow_new_offset()
2209 rdev->sb_start + rdev->mddev->bitmap_info.offset + in super_1_allow_new_offset()
2781 rdev->sb_start, rdev->sb_size, in md_update_sb()
2785 (unsigned long long)rdev->sb_start); in md_update_sb()
3514 if ((sector > rdev->sb_start && in ppl_sector_store()
3515 sector - rdev->sb_start > S16_MAX) || in ppl_sector_store()
3516 (sector < rdev->sb_start && in ppl_sector_store()
3517 rdev->sb_start - sector > -S16_MIN)) in ppl_sector_store()
3519 rdev->ppl.offset = sector - rdev->sb_start; in ppl_sector_store()
5836 } else if (rdev->data_offset < rdev->sb_start) { in md_run()
5839 > rdev->sb_start) { in md_run()
5845 if (rdev->sb_start + rdev->sb_size/512 in md_run()
6873 rdev->sb_start = bdev_nr_sectors(rdev->bdev); in md_add_new_disk()
6875 rdev->sb_start = calc_dev_sboffset(rdev); in md_add_new_disk()
6876 rdev->sectors = rdev->sb_start; in md_add_new_disk()
6956 rdev->sb_start = calc_dev_sboffset(rdev); in hot_add_disk()
6958 rdev->sb_start = bdev_nr_sectors(rdev->bdev); in hot_add_disk()
6960 rdev->sectors = rdev->sb_start; in hot_add_disk()