Lines Matching refs:lce

211 		struct bm_extent  *bm_ext = lc_entry(tmp, struct bm_extent, lce);  in find_active_resync_extent()
523 struct bm_extent *bm_ext = lc_entry(tmp, struct bm_extent, lce); in drbd_al_begin_io_nonblock()
671 struct bm_extent *ext = lc_entry(e, struct bm_extent, lce); in update_rs_extent()
672 if (ext->lce.lc_number == enr) { in update_rs_extent()
682 ext->lce.lc_number, ext->rs_left, in update_rs_extent()
705 ext->lce.lc_number, ext->rs_left, in update_rs_extent()
712 ext->lce.lc_number, ext->rs_failed); in update_rs_extent()
721 lc_put(device->resync, &ext->lce); in update_rs_extent()
915 bm_ext = e ? lc_entry(e, struct bm_extent, lce) : NULL; in _bme_get()
917 if (bm_ext->lce.lc_number != enr) { in _bme_get()
923 if (bm_ext->lce.refcnt == 1) in _bme_get()
986 if (lc_put(device->resync, &bm_ext->lce) == 0) { in drbd_rs_begin_io()
1045 bm_ext = e ? lc_entry(e, struct bm_extent, lce) : NULL; in drbd_try_rs_begin_io()
1051 if (lc_put(device->resync, &bm_ext->lce) == 0) { in drbd_try_rs_begin_io()
1062 bm_ext = e ? lc_entry(e, struct bm_extent, lce) : NULL; in drbd_try_rs_begin_io()
1073 bm_ext->lce.refcnt--; in drbd_try_rs_begin_io()
1074 D_ASSERT(device, bm_ext->lce.refcnt > 0); in drbd_try_rs_begin_io()
1083 bm_ext = e ? lc_entry(e, struct bm_extent, lce) : NULL; in drbd_try_rs_begin_io()
1092 if (bm_ext->lce.lc_number != enr) { in drbd_try_rs_begin_io()
1100 D_ASSERT(device, bm_ext->lce.refcnt == 1); in drbd_try_rs_begin_io()
1122 if (lc_put(device->resync, &bm_ext->lce) == 0) { in drbd_try_rs_begin_io()
1143 bm_ext = e ? lc_entry(e, struct bm_extent, lce) : NULL; in drbd_rs_complete_io()
1151 if (bm_ext->lce.refcnt == 0) { in drbd_rs_complete_io()
1159 if (lc_put(device->resync, &bm_ext->lce) == 0) { in drbd_rs_complete_io()
1205 bm_ext = lc_entry(e, struct bm_extent, lce); in drbd_rs_del_all()
1206 if (bm_ext->lce.lc_number == LC_FREE) in drbd_rs_del_all()
1208 if (bm_ext->lce.lc_number == device->resync_wenr) { in drbd_rs_del_all()
1216 lc_put(device->resync, &bm_ext->lce); in drbd_rs_del_all()
1218 if (bm_ext->lce.refcnt != 0) { in drbd_rs_del_all()
1220 "refcnt=%d\n", bm_ext->lce.refcnt); in drbd_rs_del_all()
1227 lc_del(device->resync, &bm_ext->lce); in drbd_rs_del_all()