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

/linux-4.4.14/drivers/block/drbd/
H A Ddrbd_nl.c756 * |----------- md_size_sect ------------------|
760 * ==> bitmap sectors = md_size_sect - bm_offset
763 * |----------- md_size_sect ------------------|
775 sector_t md_size_sect = 0; drbd_md_set_sector_offsets() local
783 bdev->md.md_size_sect = MD_128MB_SECT; drbd_md_set_sector_offsets()
789 bdev->md.md_size_sect = drbd_get_capacity(bdev->md_bdev); drbd_md_set_sector_offsets()
798 md_size_sect = drbd_get_capacity(bdev->backing_bdev); drbd_md_set_sector_offsets()
799 md_size_sect = ALIGN(md_size_sect, BM_SECT_PER_EXT); drbd_md_set_sector_offsets()
800 md_size_sect = BM_SECT_TO_EXT(md_size_sect); drbd_md_set_sector_offsets()
801 md_size_sect = ALIGN(md_size_sect, 8); drbd_md_set_sector_offsets()
805 md_size_sect += MD_4kB_SECT + al_size_sect; drbd_md_set_sector_offsets()
807 bdev->md.md_size_sect = md_size_sect; drbd_md_set_sector_offsets()
809 bdev->md.bm_offset = -md_size_sect + MD_4kB_SECT; drbd_md_set_sector_offsets()
906 prev_size = device->ldev->md.md_size_sect; __must_hold()
971 || prev_size != device->ldev->md.md_size_sect; __must_hold()
H A Ddrbd_main.c3037 u32 md_size_sect; member in struct:meta_data_on_disk
3068 buffer->md_size_sect = cpu_to_be32(device->ldev->md.md_size_sect); drbd_md_write()
3199 on_disk_bm_sect = in_core->md_size_sect - in_core->bm_offset; check_offsets_and_sizes()
3204 if (in_core->md_size_sect != MD_128MB_SECT check_offsets_and_sizes()
3212 if (capacity < in_core->md_size_sect) check_offsets_and_sizes()
3214 if (capacity - in_core->md_size_sect < drbd_md_first_sector(bdev)) check_offsets_and_sizes()
3241 "md_size_sect=%u, la_size=%llu, md_capacity=%llu\n", check_offsets_and_sizes()
3244 in_core->al_offset, in_core->bm_offset, in_core->md_size_sect, check_offsets_and_sizes()
3322 bdev->md.md_size_sect = be32_to_cpu(buffer->md_size_sect); drbd_md_read()
3336 if (be32_to_cpu(buffer->md_size_sect) != bdev->md.md_size_sect) { drbd_md_read()
3338 be32_to_cpu(buffer->md_size_sect), bdev->md.md_size_sect); drbd_md_read()
H A Ddrbd_int.h595 u32 md_size_sect; member in struct:drbd_md
1152 * |----------- md_size_sect ------------------|
1156 * ==> bitmap sectors = md_size_sect - bm_offset
1162 * |----------- md_size_sect ------------------|
1838 return bdev->md.md_offset + bdev->md.md_size_sect -1; drbd_md_last_sector()
1874 BM_EXT_TO_SECT(bdev->md.md_size_sect drbd_get_max_capacity()
H A Ddrbd_bitmap.c621 bitmap_sectors = ldev->md.md_size_sect - ldev->md.bm_offset; drbd_md_on_disk_bits()

Completed in 111 milliseconds