Home
last modified time | relevance | path

Searched refs:md_size_sect (Results 1 – 4 of 4) sorted by relevance

/drivers/block/drbd/
Ddrbd_nl.c830 sector_t md_size_sect = 0; in drbd_md_set_sector_offsets() local
838 bdev->md.md_size_sect = MD_128MB_SECT; in drbd_md_set_sector_offsets()
844 bdev->md.md_size_sect = drbd_get_capacity(bdev->md_bdev); in drbd_md_set_sector_offsets()
853 md_size_sect = drbd_get_capacity(bdev->backing_bdev); in drbd_md_set_sector_offsets()
854 md_size_sect = ALIGN(md_size_sect, BM_SECT_PER_EXT); in drbd_md_set_sector_offsets()
855 md_size_sect = BM_SECT_TO_EXT(md_size_sect); in drbd_md_set_sector_offsets()
856 md_size_sect = ALIGN(md_size_sect, 8); in drbd_md_set_sector_offsets()
860 md_size_sect += MD_4kB_SECT + al_size_sect; in drbd_md_set_sector_offsets()
862 bdev->md.md_size_sect = md_size_sect; in drbd_md_set_sector_offsets()
864 bdev->md.bm_offset = -md_size_sect + MD_4kB_SECT; in drbd_md_set_sector_offsets()
[all …]
Ddrbd_main.c3016 u32 md_size_sect; member
3047 buffer->md_size_sect = cpu_to_be32(device->ldev->md.md_size_sect); in drbd_md_write()
3178 on_disk_bm_sect = in_core->md_size_sect - in_core->bm_offset; in check_offsets_and_sizes()
3183 if (in_core->md_size_sect != MD_128MB_SECT in check_offsets_and_sizes()
3191 if (capacity < in_core->md_size_sect) in check_offsets_and_sizes()
3193 if (capacity - in_core->md_size_sect < drbd_md_first_sector(bdev)) in check_offsets_and_sizes()
3223 in_core->al_offset, in_core->bm_offset, in_core->md_size_sect, in check_offsets_and_sizes()
3262 bdev->md.md_size_sect = 8; in drbd_md_read()
3306 bdev->md.md_size_sect = be32_to_cpu(buffer->md_size_sect); in drbd_md_read()
3320 if (be32_to_cpu(buffer->md_size_sect) != bdev->md.md_size_sect) { in drbd_md_read()
[all …]
Ddrbd_int.h579 u32 md_size_sect; member
1824 return bdev->md.md_offset + bdev->md.md_size_sect -1; in drbd_md_last_sector()
1860 BM_EXT_TO_SECT(bdev->md.md_size_sect in drbd_get_max_capacity()
Ddrbd_bitmap.c616 bitmap_sectors = ldev->md.md_size_sect - ldev->md.bm_offset; in drbd_md_on_disk_bits()