Lines Matching refs:in_core
3166 struct drbd_md *in_core) in check_activity_log_stripe_size() argument
3198 in_core->al_stripe_size_4k = al_stripe_size_4k; in check_activity_log_stripe_size()
3199 in_core->al_stripes = al_stripes; in check_activity_log_stripe_size()
3200 in_core->al_size_4k = al_size_4k; in check_activity_log_stripe_size()
3212 struct drbd_md *in_core = &bdev->md; in check_offsets_and_sizes() local
3224 if (in_core->al_offset < 0) { in check_offsets_and_sizes()
3225 if (in_core->bm_offset > in_core->al_offset) in check_offsets_and_sizes()
3227 on_disk_al_sect = -in_core->al_offset; in check_offsets_and_sizes()
3228 on_disk_bm_sect = in_core->al_offset - in_core->bm_offset; in check_offsets_and_sizes()
3230 if (in_core->al_offset != MD_4kB_SECT) in check_offsets_and_sizes()
3232 if (in_core->bm_offset < in_core->al_offset + in_core->al_size_4k * MD_4kB_SECT) in check_offsets_and_sizes()
3235 on_disk_al_sect = in_core->bm_offset - MD_4kB_SECT; in check_offsets_and_sizes()
3236 on_disk_bm_sect = in_core->md_size_sect - in_core->bm_offset; in check_offsets_and_sizes()
3240 if (in_core->meta_dev_idx >= 0) { in check_offsets_and_sizes()
3241 if (in_core->md_size_sect != MD_128MB_SECT in check_offsets_and_sizes()
3242 || in_core->al_offset != MD_4kB_SECT in check_offsets_and_sizes()
3243 || in_core->bm_offset != MD_4kB_SECT + MD_32kB_SECT in check_offsets_and_sizes()
3244 || in_core->al_stripes != 1 in check_offsets_and_sizes()
3245 || in_core->al_stripe_size_4k != MD_32kB_SECT/8) in check_offsets_and_sizes()
3249 if (capacity < in_core->md_size_sect) in check_offsets_and_sizes()
3251 if (capacity - in_core->md_size_sect < drbd_md_first_sector(bdev)) in check_offsets_and_sizes()
3260 if (on_disk_al_sect != in_core->al_size_4k * MD_4kB_SECT) in check_offsets_and_sizes()
3264 if (in_core->bm_offset & 7) in check_offsets_and_sizes()
3270 if (on_disk_bm_sect < (in_core->la_size_sect+7)/MD_4kB_SECT/8/512) in check_offsets_and_sizes()
3279 in_core->meta_dev_idx, in check_offsets_and_sizes()
3280 in_core->al_stripes, in_core->al_stripe_size_4k, in check_offsets_and_sizes()
3281 in_core->al_offset, in_core->bm_offset, in_core->md_size_sect, in check_offsets_and_sizes()
3282 (unsigned long long)in_core->la_size_sect, in check_offsets_and_sizes()