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

/linux-4.4.14/drivers/block/drbd/
H A Ddrbd_main.c3041 u32 bm_offset; /* offset to the bitmap, from here */ member in struct:meta_data_on_disk
3074 buffer->bm_offset = cpu_to_be32(device->ldev->md.bm_offset); drbd_md_write()
3188 if (in_core->bm_offset > in_core->al_offset) check_offsets_and_sizes()
3191 on_disk_bm_sect = in_core->al_offset - in_core->bm_offset; check_offsets_and_sizes()
3195 if (in_core->bm_offset < in_core->al_offset + in_core->al_size_4k * MD_4kB_SECT) check_offsets_and_sizes()
3198 on_disk_al_sect = in_core->bm_offset - MD_4kB_SECT; check_offsets_and_sizes()
3199 on_disk_bm_sect = in_core->md_size_sect - in_core->bm_offset; check_offsets_and_sizes()
3206 || in_core->bm_offset != MD_4kB_SECT + MD_32kB_SECT check_offsets_and_sizes()
3227 if (in_core->bm_offset & 7) check_offsets_and_sizes()
3240 "al_s=%u, al_sz4k=%u, al_offset=%d, bm_offset=%d, " check_offsets_and_sizes()
3244 in_core->al_offset, in_core->bm_offset, in_core->md_size_sect, check_offsets_and_sizes()
3324 bdev->md.bm_offset = be32_to_cpu(buffer->bm_offset); drbd_md_read()
3331 if (be32_to_cpu(buffer->bm_offset) != bdev->md.bm_offset) { drbd_md_read()
3332 drbd_err(device, "unexpected bm_offset: %d (expected %d)\n", drbd_md_read()
3333 be32_to_cpu(buffer->bm_offset), bdev->md.bm_offset); drbd_md_read()
H A Ddrbd_int.h598 s32 bm_offset; /* signed relative sector offset to bitmap */ member in struct:drbd_md
1155 * | bm_offset = al_offset + X |
1156 * ==> bitmap sectors = md_size_sect - bm_offset
1165 * | bm_offset = al_offset - Y |
1166 * ==> bitmap sectors = Y = al_offset - bm_offset
1819 return bdev->md.md_offset + bdev->md.bm_offset; drbd_md_first_sector()
1875 - bdev->md.bm_offset)); drbd_get_max_capacity()
H A Ddrbd_nl.c759 * | bm_offset = al_offset + X |
760 * ==> bitmap sectors = md_size_sect - bm_offset
766 * | bm_offset = al_offset - Y |
767 * ==> bitmap sectors = Y = al_offset - bm_offset
785 bdev->md.bm_offset = MD_4kB_SECT + al_size_sect; drbd_md_set_sector_offsets()
791 bdev->md.bm_offset = MD_4kB_SECT + al_size_sect; drbd_md_set_sector_offsets()
809 bdev->md.bm_offset = -md_size_sect + MD_4kB_SECT; drbd_md_set_sector_offsets()
H A Ddrbd_bitmap.c621 bitmap_sectors = ldev->md.md_size_sect - ldev->md.bm_offset; drbd_md_on_disk_bits()
623 bitmap_sectors = ldev->md.al_offset - ldev->md.bm_offset; drbd_md_on_disk_bits()
994 device->ldev->md.md_offset + device->ldev->md.bm_offset; __must_hold()

Completed in 153 milliseconds