Home
last modified time | relevance | path

Searched refs:enr (Results 1 – 5 of 5) sorted by relevance

/Linux-v4.19/drivers/block/drbd/
Ddrbd_actlog.c218 static struct bm_extent *find_active_resync_extent(struct drbd_device *device, unsigned int enr) in find_active_resync_extent() argument
221 tmp = lc_find(device->resync, enr/AL_EXT_PER_BM_SECT); in find_active_resync_extent()
230 static struct lc_element *_al_get(struct drbd_device *device, unsigned int enr, bool nonblock) in _al_get() argument
237 bm_ext = find_active_resync_extent(device, enr); in _al_get()
246 al_ext = lc_try_get(device->act_log, enr); in _al_get()
248 al_ext = lc_get(device->act_log, enr); in _al_get()
276 unsigned enr; in drbd_al_begin_io_prepare() local
282 for (enr = first; enr <= last; enr++) { in drbd_al_begin_io_prepare()
285 (al_ext = _al_get(device, enr, false)) != NULL); in drbd_al_begin_io_prepare()
286 if (al_ext->lc_number != enr) in drbd_al_begin_io_prepare()
[all …]
Ddrbd_bitmap.c1644 int drbd_bm_e_weight(struct drbd_device *device, unsigned long enr) in drbd_bm_e_weight() argument
1660 s = S2W(enr); in drbd_bm_e_weight()
1661 e = min((size_t)S2W(enr+1), b->bm_words); in drbd_bm_e_weight()
Ddrbd_int.h1371 extern int drbd_bm_e_weight(struct drbd_device *device, unsigned long enr);
/Linux-v4.19/lib/
Dlru_cache.c255 static struct hlist_head *lc_hash_slot(struct lru_cache *lc, unsigned int enr) in lc_hash_slot() argument
257 return lc->lc_slot + (enr % lc->nr_elements); in lc_hash_slot()
261 static struct lc_element *__lc_find(struct lru_cache *lc, unsigned int enr, in __lc_find() argument
268 hlist_for_each_entry(e, lc_hash_slot(lc, enr), colision) { in __lc_find()
272 if (e->lc_new_number != enr) in __lc_find()
292 struct lc_element *lc_find(struct lru_cache *lc, unsigned int enr) in lc_find() argument
294 return __lc_find(lc, enr, 0); in lc_find()
307 bool lc_is_used(struct lru_cache *lc, unsigned int enr) in lc_is_used() argument
309 struct lc_element *e = __lc_find(lc, enr, 1); in lc_is_used()
373 static struct lc_element *__lc_get(struct lru_cache *lc, unsigned int enr, unsigned int flags) in __lc_get() argument
[all …]
/Linux-v4.19/include/linux/
Dlru_cache.h256 extern void lc_set(struct lru_cache *lc, unsigned int enr, int index);
259 extern struct lc_element *lc_get_cumulative(struct lru_cache *lc, unsigned int enr);
260 extern struct lc_element *lc_try_get(struct lru_cache *lc, unsigned int enr);
261 extern struct lc_element *lc_find(struct lru_cache *lc, unsigned int enr);
262 extern struct lc_element *lc_get(struct lru_cache *lc, unsigned int enr);
306 extern bool lc_is_used(struct lru_cache *lc, unsigned int enr);