Searched refs:md_size_sect (Results 1 – 4 of 4) sorted by relevance
491 sector_t md_size_sect = 0; in drbd_md_set_sector_offsets() local495 bdev->md.md_size_sect = MD_RESERVED_SECT; in drbd_md_set_sector_offsets()502 bdev->md.md_size_sect = drbd_get_capacity(bdev->md_bdev); in drbd_md_set_sector_offsets()513 md_size_sect = drbd_get_capacity(bdev->backing_bdev); in drbd_md_set_sector_offsets()514 md_size_sect = ALIGN(md_size_sect, BM_SECT_PER_EXT); in drbd_md_set_sector_offsets()515 md_size_sect = BM_SECT_TO_EXT(md_size_sect); in drbd_md_set_sector_offsets()516 md_size_sect = ALIGN(md_size_sect, 8); in drbd_md_set_sector_offsets()520 md_size_sect += MD_BM_OFFSET; in drbd_md_set_sector_offsets()522 bdev->md.md_size_sect = md_size_sect; in drbd_md_set_sector_offsets()524 bdev->md.bm_offset = -md_size_sect + MD_AL_OFFSET; in drbd_md_set_sector_offsets()[all …]
3624 u32 md_size_sect; member3664 buffer->md_size_sect = cpu_to_be32(mdev->ldev->md.md_size_sect); in drbd_md_sync()3733 if (be32_to_cpu(buffer->md_size_sect) != bdev->md.md_size_sect) { in drbd_md_read()3735 be32_to_cpu(buffer->md_size_sect), bdev->md.md_size_sect); in drbd_md_read()
913 u32 md_size_sect; member1897 return bdev->md.md_offset + bdev->md.md_size_sect; in drbd_md_last_sector()1932 BM_EXT_TO_SECT(bdev->md.md_size_sect in drbd_get_max_capacity()
655 u64 bits_on_disk = ((u64)mdev->ldev->md.md_size_sect-MD_BM_OFFSET) << 12; in drbd_bm_resize()