Searched refs:md_size_sect (Results 1 – 4 of 4) sorted by relevance
831 sector_t md_size_sect = 0; in drbd_md_set_sector_offsets() local839 bdev->md.md_size_sect = MD_128MB_SECT; in drbd_md_set_sector_offsets()845 bdev->md.md_size_sect = drbd_get_capacity(bdev->md_bdev); in drbd_md_set_sector_offsets()854 md_size_sect = drbd_get_capacity(bdev->backing_bdev); in drbd_md_set_sector_offsets()855 md_size_sect = ALIGN(md_size_sect, BM_SECT_PER_EXT); in drbd_md_set_sector_offsets()856 md_size_sect = BM_SECT_TO_EXT(md_size_sect); in drbd_md_set_sector_offsets()857 md_size_sect = ALIGN(md_size_sect, 8); in drbd_md_set_sector_offsets()861 md_size_sect += MD_4kB_SECT + al_size_sect; in drbd_md_set_sector_offsets()863 bdev->md.md_size_sect = md_size_sect; in drbd_md_set_sector_offsets()865 bdev->md.bm_offset = -md_size_sect + MD_4kB_SECT; in drbd_md_set_sector_offsets()[all …]
2967 u32 md_size_sect; member2998 buffer->md_size_sect = cpu_to_be32(device->ldev->md.md_size_sect); in drbd_md_write()3129 on_disk_bm_sect = in_core->md_size_sect - in_core->bm_offset; in check_offsets_and_sizes()3134 if (in_core->md_size_sect != MD_128MB_SECT in check_offsets_and_sizes()3142 if (capacity < in_core->md_size_sect) in check_offsets_and_sizes()3144 if (capacity - in_core->md_size_sect < drbd_md_first_sector(bdev)) in check_offsets_and_sizes()3174 in_core->al_offset, in_core->bm_offset, in_core->md_size_sect, in check_offsets_and_sizes()3213 bdev->md.md_size_sect = 8; in drbd_md_read()3257 bdev->md.md_size_sect = be32_to_cpu(buffer->md_size_sect); in drbd_md_read()3271 if (be32_to_cpu(buffer->md_size_sect) != bdev->md.md_size_sect) { in drbd_md_read()[all …]
578 u32 md_size_sect; member1816 return bdev->md.md_offset + bdev->md.md_size_sect -1; in drbd_md_last_sector()1851 BM_EXT_TO_SECT(bdev->md.md_size_sect in drbd_get_max_capacity()
616 bitmap_sectors = ldev->md.md_size_sect - ldev->md.bm_offset; in drbd_md_on_disk_bits()986 return bdev->md.md_offset + bdev->md.md_size_sect -1; in drbd_md_last_bitmap_sector()