Lines Matching refs:al_ext
220 struct lc_element *al_ext; in _al_get() local
234 al_ext = lc_try_get(device->act_log, enr); in _al_get()
236 al_ext = lc_get(device->act_log, enr); in _al_get()
238 return al_ext; in _al_get()
271 struct lc_element *al_ext; in drbd_al_begin_io_prepare() local
273 (al_ext = _al_get(device, enr, false)) != NULL); in drbd_al_begin_io_prepare()
274 if (al_ext->lc_number != enr) in drbd_al_begin_io_prepare()
536 struct lc_element *al_ext; in drbd_al_begin_io_nonblock() local
537 al_ext = lc_get_cumulative(device->act_log, enr); in drbd_al_begin_io_nonblock()
538 if (!al_ext) in drbd_al_begin_io_nonblock()
569 static int _try_lc_del(struct drbd_device *device, struct lc_element *al_ext) in _try_lc_del() argument
574 rv = (al_ext->refcnt == 0); in _try_lc_del()
576 lc_del(device->act_log, al_ext); in _try_lc_del()
593 struct lc_element *al_ext; in drbd_al_shrink() local
599 al_ext = lc_element_by_index(device->act_log, i); in drbd_al_shrink()
600 if (al_ext->lc_number == LC_FREE) in drbd_al_shrink()
602 wait_event(device->al_wait, _try_lc_del(device, al_ext)); in drbd_al_shrink()