Home
last modified time | relevance | path

Searched refs:act_log (Results 1 – 6 of 6) sorted by relevance

/linux-2.6.39/drivers/block/drbd/
Ddrbd_actlog.c193 al_ext = lc_get(mdev->act_log, enr); in _al_get()
194 al_flags = mdev->act_log->flags; in _al_get()
237 lc_changed(mdev->act_log, al_ext); in drbd_al_begin_io()
251 extent = lc_find(mdev->act_log, enr); in drbd_al_complete_io()
259 if (lc_put(mdev->act_log, extent) == 0) in drbd_al_complete_io()
337 n = lc_index_of(mdev->act_log, updated); in w_al_write_transaction()
345 mdev->act_log->nr_elements - mdev->al_tr_cycle); in w_al_write_transaction()
348 extent_nr = lc_element_by_index(mdev->act_log, idx)->lc_number; in w_al_write_transaction()
359 if (mdev->al_tr_cycle >= mdev->act_log->nr_elements) in w_al_write_transaction()
371 div_ceil(mdev->act_log->nr_elements, AL_EXTENTS_PT)) in w_al_write_transaction()
[all …]
Ddrbd_nl.c602 wait_event(mdev->al_wait, lc_try_lock(mdev->act_log)); in drbd_determin_dev_size()
666 lc_unlock(mdev->act_log); in drbd_determin_dev_size()
738 if (mdev->act_log && in drbd_check_al_size()
739 mdev->act_log->nr_elements == mdev->sync_conf.al_extents) in drbd_check_al_size()
743 t = mdev->act_log; in drbd_check_al_size()
762 mdev->act_log = n; in drbd_check_al_size()
837 if (lc_try_lock(mdev->act_log)) { in drbd_suspend_al()
839 lc_unlock(mdev->act_log); in drbd_suspend_al()
1840 wait_event(mdev->al_wait, lc_try_lock(mdev->act_log)); in drbd_nl_syncer_conf()
1843 lc_unlock(mdev->act_log); in drbd_nl_syncer_conf()
Ddrbd_proc.c291 lc_seq_printf_stats(seq, mdev->act_log); in drbd_seq_show()
Ddrbd_req.c980 if (mdev->act_log->used >= mdev->net_conf->cong_extents) { in drbd_make_request_common()
Ddrbd_main.c3285 lc_destroy(mdev->act_log); in drbd_delete_device()
3666 buffer->al_nr_extents = cpu_to_be32(mdev->act_log->nr_elements); in drbd_md_sync()
3945 lc_destroy(mdev->act_log); in drbd_ldev_destroy()
3946 mdev->act_log = NULL; in drbd_ldev_destroy()
Ddrbd_int.h1100 struct lru_cache *act_log; /* activity log */ member