Lines Matching refs:sb_start
942 rdev->sb_start = 0; in md_rdev_clear()
1037 bio->bi_iter.bi_sector = sector + rdev->sb_start; in sync_page_io()
1226 rdev->sb_start = calc_dev_sboffset(rdev); in super_90_load()
1303 rdev->sectors = rdev->sb_start; in super_90_load()
1603 rdev->sb_start = calc_dev_sboffset(rdev); in super_90_rdev_size_change()
1604 if (!num_sectors || num_sectors > rdev->sb_start) in super_90_rdev_size_change()
1605 num_sectors = rdev->sb_start; in super_90_rdev_size_change()
1612 md_super_write(rdev->mddev, rdev, rdev->sb_start, rdev->sb_size, in super_90_rdev_size_change()
1655 sector_t sb_start; in super_1_load() local
1671 sb_start = i_size_read(rdev->bdev->bd_inode) >> 9; in super_1_load()
1672 sb_start -= 8*2; in super_1_load()
1673 sb_start &= ~(sector_t)(4*2-1); in super_1_load()
1676 sb_start = 0; in super_1_load()
1679 sb_start = 8; in super_1_load()
1684 rdev->sb_start = sb_start; in super_1_load()
1697 le64_to_cpu(sb->super_offset) != rdev->sb_start || in super_1_load()
1731 && rdev->data_offset < sb_start + (rdev->sb_size/512)) in super_1_load()
1734 && rdev->new_data_offset < sb_start + (rdev->sb_size/512)) in super_1_load()
1786 rdev->ppl.sector = rdev->sb_start + rdev->ppl.offset; in super_1_load()
1831 sectors = rdev->sb_start; in super_1_load()
2157 bb->sector = (rdev->sb_start + in super_1_sync()
2238 if (rdev->sb_start < rdev->data_offset) { in super_1_rdev_size_change()
2249 sector_t sb_start, bm_space; in super_1_rdev_size_change() local
2253 sb_start = dev_size - 8*2; in super_1_rdev_size_change()
2254 sb_start &= ~(sector_t)(4*2 - 1); in super_1_rdev_size_change()
2261 max_sectors = sb_start - bm_space - 4*2; in super_1_rdev_size_change()
2265 rdev->sb_start = sb_start; in super_1_rdev_size_change()
2269 sb->super_offset = cpu_to_le64(rdev->sb_start); in super_1_rdev_size_change()
2272 md_super_write(rdev->mddev, rdev, rdev->sb_start, rdev->sb_size, in super_1_rdev_size_change()
2299 if (rdev->sb_start + (32+4)*2 > new_offset) in super_1_allow_new_offset()
2303 rdev->sb_start + rdev->mddev->bitmap_info.offset + in super_1_allow_new_offset()
2871 rdev->sb_start, rdev->sb_size, in md_update_sb()
2875 (unsigned long long)rdev->sb_start); in md_update_sb()
3610 if ((sector > rdev->sb_start && in ppl_sector_store()
3611 sector - rdev->sb_start > S16_MAX) || in ppl_sector_store()
3612 (sector < rdev->sb_start && in ppl_sector_store()
3613 rdev->sb_start - sector > -S16_MIN)) in ppl_sector_store()
3615 rdev->ppl.offset = sector - rdev->sb_start; in ppl_sector_store()
5929 } else if (rdev->data_offset < rdev->sb_start) { in md_run()
5932 > rdev->sb_start) { in md_run()
5938 if (rdev->sb_start + rdev->sb_size/512 in md_run()
6967 rdev->sb_start = i_size_read(rdev->bdev->bd_inode) / 512; in md_add_new_disk()
6969 rdev->sb_start = calc_dev_sboffset(rdev); in md_add_new_disk()
6970 rdev->sectors = rdev->sb_start; in md_add_new_disk()
7052 rdev->sb_start = calc_dev_sboffset(rdev); in hot_add_disk()
7054 rdev->sb_start = i_size_read(rdev->bdev->bd_inode) / 512; in hot_add_disk()
7056 rdev->sectors = rdev->sb_start; in hot_add_disk()