Lines Matching refs:act_log

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()
338 list_for_each_entry(e, &device->act_log->to_be_changed, list) { in __al_write_transaction()
359 buffer->context_size = cpu_to_be16(device->act_log->nr_elements); in __al_write_transaction()
363 device->act_log->nr_elements - device->al_tr_cycle); in __al_write_transaction()
366 extent_nr = lc_element_by_index(device->act_log, idx)->lc_number; in __al_write_transaction()
373 if (device->al_tr_cycle >= device->act_log->nr_elements) in __al_write_transaction()
447 device->act_log->pending_changes == 0 || in drbd_al_begin_io_commit()
448 (locked = lc_try_lock_for_transaction(device->act_log))); in drbd_al_begin_io_commit()
453 if (device->act_log->pending_changes) { in drbd_al_begin_io_commit()
467 lc_committed(device->act_log); in drbd_al_begin_io_commit()
470 lc_unlock(device->act_log); in drbd_al_begin_io_commit()
486 struct lru_cache *al = device->act_log; in drbd_al_begin_io_nonblock()
514 __set_bit(__LC_STARVING, &device->act_log->flags); in drbd_al_begin_io_nonblock()
537 al_ext = lc_get_cumulative(device->act_log, enr); in drbd_al_begin_io_nonblock()
558 extent = lc_find(device->act_log, enr); in drbd_al_complete_io()
563 lc_put(device->act_log, extent); in drbd_al_complete_io()
576 lc_del(device->act_log, al_ext); in _try_lc_del()
596 D_ASSERT(device, test_bit(__LC_LOCKED, &device->act_log->flags)); in drbd_al_shrink()
598 for (i = 0; i < device->act_log->nr_elements; i++) { in drbd_al_shrink()
599 al_ext = lc_element_by_index(device->act_log, i); in drbd_al_shrink()
618 lc_committed(device->act_log); in drbd_al_initialize()
949 rv = lc_is_used(device->act_log, enr); in _is_in_al()
1113 if (lc_is_used(device->act_log, al_enr+i)) in drbd_try_rs_begin_io()