Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/block/drbd/
Ddrbd_nl.c829 sector_t md_size_sect = 0; in drbd_md_set_sector_offsets() local
837 bdev->md.md_size_sect = MD_128MB_SECT; in drbd_md_set_sector_offsets()
843 bdev->md.md_size_sect = drbd_get_capacity(bdev->md_bdev); in drbd_md_set_sector_offsets()
852 md_size_sect = drbd_get_capacity(bdev->backing_bdev); in drbd_md_set_sector_offsets()
853 md_size_sect = ALIGN(md_size_sect, BM_SECT_PER_EXT); in drbd_md_set_sector_offsets()
854 md_size_sect = BM_SECT_TO_EXT(md_size_sect); in drbd_md_set_sector_offsets()
855 md_size_sect = ALIGN(md_size_sect, 8); in drbd_md_set_sector_offsets()
859 md_size_sect += MD_4kB_SECT + al_size_sect; in drbd_md_set_sector_offsets()
861 bdev->md.md_size_sect = md_size_sect; in drbd_md_set_sector_offsets()
863 bdev->md.bm_offset = -md_size_sect + MD_4kB_SECT; in drbd_md_set_sector_offsets()
[all …]
Ddrbd_main.c3082 u32 md_size_sect; member
3113 buffer->md_size_sect = cpu_to_be32(device->ldev->md.md_size_sect); in drbd_md_write()
3244 on_disk_bm_sect = in_core->md_size_sect - in_core->bm_offset; in check_offsets_and_sizes()
3249 if (in_core->md_size_sect != MD_128MB_SECT in check_offsets_and_sizes()
3257 if (capacity < in_core->md_size_sect) in check_offsets_and_sizes()
3259 if (capacity - in_core->md_size_sect < drbd_md_first_sector(bdev)) in check_offsets_and_sizes()
3289 in_core->al_offset, in_core->bm_offset, in_core->md_size_sect, in check_offsets_and_sizes()
3328 bdev->md.md_size_sect = 8; in drbd_md_read()
3372 bdev->md.md_size_sect = be32_to_cpu(buffer->md_size_sect); in drbd_md_read()
3386 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
1853 return bdev->md.md_offset + bdev->md.md_size_sect -1; in drbd_md_last_sector()
1889 BM_EXT_TO_SECT(bdev->md.md_size_sect in drbd_get_max_capacity()
Ddrbd_bitmap.c618 bitmap_sectors = ldev->md.md_size_sect - ldev->md.bm_offset; in drbd_md_on_disk_bits()