• Home
  • Raw
  • Download

Lines Matching refs:enr

217 static struct bm_extent *find_active_resync_extent(struct drbd_device *device, unsigned int enr)  in find_active_resync_extent()  argument
220 tmp = lc_find(device->resync, enr/AL_EXT_PER_BM_SECT); in find_active_resync_extent()
229 static struct lc_element *_al_get(struct drbd_device *device, unsigned int enr, bool nonblock) in _al_get() argument
236 bm_ext = find_active_resync_extent(device, enr); in _al_get()
245 al_ext = lc_try_get(device->act_log, enr); in _al_get()
247 al_ext = lc_get(device->act_log, enr); in _al_get()
275 unsigned enr; in drbd_al_begin_io_prepare() local
281 for (enr = first; enr <= last; enr++) { in drbd_al_begin_io_prepare()
284 (al_ext = _al_get(device, enr, false)) != NULL); in drbd_al_begin_io_prepare()
285 if (al_ext->lc_number != enr) in drbd_al_begin_io_prepare()
347 unsigned enr; in drbd_al_begin_io_nonblock() local
373 for (enr = first; enr <= last; enr++) { in drbd_al_begin_io_nonblock()
375 tmp = lc_find(device->resync, enr/AL_EXT_PER_BM_SECT); in drbd_al_begin_io_nonblock()
389 for (enr = first; enr <= last; enr++) { in drbd_al_begin_io_nonblock()
391 al_ext = lc_get_cumulative(device->act_log, enr); in drbd_al_begin_io_nonblock()
393 drbd_info(device, "LOGIC BUG for enr=%u\n", enr); in drbd_al_begin_io_nonblock()
404 unsigned enr; in drbd_al_complete_io() local
411 for (enr = first; enr <= last; enr++) { in drbd_al_complete_io()
412 extent = lc_find(device->act_log, enr); in drbd_al_complete_io()
414 drbd_err(device, "al_complete_io() called on inactive extent %u\n", enr); in drbd_al_complete_io()
650 unsigned int enr, int count, in update_rs_extent() argument
665 e = lc_find(device->resync, enr); in update_rs_extent()
667 e = lc_get(device->resync, enr); in update_rs_extent()
670 if (ext->lce.lc_number == enr) { in update_rs_extent()
690 ext->rs_left = drbd_bm_e_weight(device, enr); in update_rs_extent()
699 int rs_left = drbd_bm_e_weight(device, enr); in update_rs_extent()
704 ext->flags, enr, rs_left); in update_rs_extent()
885 struct bm_extent *_bme_get(struct drbd_device *device, unsigned int enr) in _bme_get() argument
897 e = lc_get(device->resync, enr); in _bme_get()
900 if (bm_ext->lce.lc_number != enr) { in _bme_get()
901 bm_ext->rs_left = drbd_bm_e_weight(device, enr); in _bme_get()
925 static int _is_in_al(struct drbd_device *device, unsigned int enr) in _is_in_al() argument
930 rv = lc_is_used(device->act_log, enr); in _is_in_al()
945 unsigned int enr = BM_SECT_TO_EXT(sector); in drbd_rs_begin_io() local
952 (bm_ext = _bme_get(device, enr))); in drbd_rs_begin_io()
964 !_is_in_al(device, enr * AL_EXT_PER_BM_SECT + i) || in drbd_rs_begin_io()
997 unsigned int enr = BM_SECT_TO_EXT(sector); in drbd_try_rs_begin_io() local
998 const unsigned int al_enr = enr*AL_EXT_PER_BM_SECT; in drbd_try_rs_begin_io()
1009 if (throttle && device->resync_wenr != enr) in drbd_try_rs_begin_io()
1013 if (device->resync_wenr != LC_FREE && device->resync_wenr != enr) { in drbd_try_rs_begin_io()
1044 e = lc_try_get(device->resync, enr); in drbd_try_rs_begin_io()
1065 e = lc_get(device->resync, enr); in drbd_try_rs_begin_io()
1075 if (bm_ext->lce.lc_number != enr) { in drbd_try_rs_begin_io()
1076 bm_ext->rs_left = drbd_bm_e_weight(device, enr); in drbd_try_rs_begin_io()
1111 device->resync_wenr = enr; in drbd_try_rs_begin_io()
1119 unsigned int enr = BM_SECT_TO_EXT(sector); in drbd_rs_complete_io() local
1125 e = lc_find(device->resync, enr); in drbd_rs_complete_io()
1138 (unsigned long long)sector, enr); in drbd_rs_complete_io()