Searched refs:md_size_sect (Results 1 – 4 of 4) sorted by relevance
510 sector_t md_size_sect = 0; in drbd_md_set_sector_offsets() local514 bdev->md.md_size_sect = MD_RESERVED_SECT; in drbd_md_set_sector_offsets()521 bdev->md.md_size_sect = drbd_get_capacity(bdev->md_bdev); in drbd_md_set_sector_offsets()532 md_size_sect = drbd_get_capacity(bdev->backing_bdev); in drbd_md_set_sector_offsets()533 md_size_sect = ALIGN(md_size_sect, BM_SECT_PER_EXT); in drbd_md_set_sector_offsets()534 md_size_sect = BM_SECT_TO_EXT(md_size_sect); in drbd_md_set_sector_offsets()535 md_size_sect = ALIGN(md_size_sect, 8); in drbd_md_set_sector_offsets()539 md_size_sect += MD_BM_OFFSET; in drbd_md_set_sector_offsets()541 bdev->md.md_size_sect = md_size_sect; in drbd_md_set_sector_offsets()543 bdev->md.bm_offset = -md_size_sect + MD_AL_OFFSET; in drbd_md_set_sector_offsets()[all …]
3638 u32 md_size_sect; member3679 buffer->md_size_sect = cpu_to_be32(mdev->ldev->md.md_size_sect); in drbd_md_sync()3749 if (be32_to_cpu(buffer->md_size_sect) != bdev->md.md_size_sect) { in drbd_md_read()3751 be32_to_cpu(buffer->md_size_sect), bdev->md.md_size_sect); in drbd_md_read()
913 u32 md_size_sect; member1900 return bdev->md.md_offset + bdev->md.md_size_sect; in drbd_md_last_sector()1935 BM_EXT_TO_SECT(bdev->md.md_size_sect in drbd_get_max_capacity()
651 u64 bits_on_disk = ((u64)mdev->ldev->md.md_size_sect-MD_BM_OFFSET) << 12; in drbd_bm_resize()