/kernel/linux/linux-5.10/drivers/block/drbd/ |
H A D | drbd_actlog.c | 206 static struct bm_extent *find_active_resync_extent(struct drbd_device *device, unsigned int enr) in find_active_resync_extent() argument 209 tmp = lc_find(device->resync, enr/AL_EXT_PER_BM_SECT); in find_active_resync_extent() 218 static struct lc_element *_al_get(struct drbd_device *device, unsigned int enr, bool nonblock) in _al_get() argument 225 bm_ext = find_active_resync_extent(device, enr); in _al_get() 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() 264 unsigned enr; in drbd_al_begin_io_prepare() local 270 for (enr = first; enr <= last; enr in drbd_al_begin_io_prepare() 493 unsigned enr; drbd_al_begin_io_nonblock() local 550 unsigned enr; drbd_al_complete_io() local 651 update_rs_extent(struct drbd_device *device, unsigned int enr, int count, enum update_sync_bits_mode mode) update_rs_extent() argument 902 _bme_get(struct drbd_device *device, unsigned int enr) _bme_get() argument 942 _is_in_al(struct drbd_device *device, unsigned int enr) _is_in_al() argument 962 unsigned int enr = BM_SECT_TO_EXT(sector); drbd_rs_begin_io() local 1014 unsigned int enr = BM_SECT_TO_EXT(sector); drbd_try_rs_begin_io() local 1136 unsigned int enr = BM_SECT_TO_EXT(sector); drbd_rs_complete_io() local [all...] |
H A D | drbd_bitmap.c | 1622 * enr is bm-extent number, since we chose to name one sector (512 bytes) 1630 int drbd_bm_e_weight(struct drbd_device *device, unsigned long enr) in drbd_bm_e_weight() argument 1646 s = S2W(enr); in drbd_bm_e_weight() 1647 e = min((size_t)S2W(enr+1), b->bm_words); in drbd_bm_e_weight()
|
H A D | drbd_int.h | 1358 extern int drbd_bm_e_weight(struct drbd_device *device, unsigned long enr);
|
/kernel/linux/linux-6.6/drivers/block/drbd/ |
H A D | drbd_actlog.c | 206 static struct bm_extent *find_active_resync_extent(struct drbd_device *device, unsigned int enr) in find_active_resync_extent() argument 209 tmp = lc_find(device->resync, enr/AL_EXT_PER_BM_SECT); in find_active_resync_extent() 218 static struct lc_element *_al_get(struct drbd_device *device, unsigned int enr, bool nonblock) in _al_get() argument 225 bm_ext = find_active_resync_extent(device, enr); in _al_get() 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() 264 unsigned enr; in drbd_al_begin_io_prepare() local 270 for (enr = first; enr <= last; enr in drbd_al_begin_io_prepare() 493 unsigned enr; drbd_al_begin_io_nonblock() local 550 unsigned enr; drbd_al_complete_io() local 651 update_rs_extent(struct drbd_device *device, unsigned int enr, int count, enum update_sync_bits_mode mode) update_rs_extent() argument 904 _bme_get(struct drbd_device *device, unsigned int enr) _bme_get() argument 944 _is_in_al(struct drbd_device *device, unsigned int enr) _is_in_al() argument 964 unsigned int enr = BM_SECT_TO_EXT(sector); drbd_rs_begin_io() local 1017 unsigned int enr = BM_SECT_TO_EXT(sector); drbd_try_rs_begin_io() local 1139 unsigned int enr = BM_SECT_TO_EXT(sector); drbd_rs_complete_io() local [all...] |
H A D | drbd_bitmap.c | 1659 * enr is bm-extent number, since we chose to name one sector (512 bytes) 1667 int drbd_bm_e_weight(struct drbd_device *device, unsigned long enr) in drbd_bm_e_weight() argument 1683 s = S2W(enr); in drbd_bm_e_weight() 1684 e = min((size_t)S2W(enr+1), b->bm_words); in drbd_bm_e_weight()
|
H A D | drbd_int.h | 1293 extern int drbd_bm_e_weight(struct drbd_device *device, unsigned long enr);
|
/kernel/linux/linux-5.10/lib/ |
H A D | lru_cache.c | 243 static struct hlist_head *lc_hash_slot(struct lru_cache *lc, unsigned int enr) in lc_hash_slot() argument 245 return lc->lc_slot + (enr % lc->nr_elements); in lc_hash_slot() 249 static struct lc_element *__lc_find(struct lru_cache *lc, unsigned int enr, in __lc_find() argument 256 hlist_for_each_entry(e, lc_hash_slot(lc, enr), colision) { in __lc_find() 260 if (e->lc_new_number != enr) in __lc_find() 272 * @enr: element number 280 struct lc_element *lc_find(struct lru_cache *lc, unsigned int enr) in lc_find() argument 282 return __lc_find(lc, enr, 0); in lc_find() 288 * @enr: element number 295 bool lc_is_used(struct lru_cache *lc, unsigned int enr) in lc_is_used() argument 361 __lc_get(struct lru_cache *lc, unsigned int enr, unsigned int flags) __lc_get() argument 480 lc_get(struct lru_cache *lc, unsigned int enr) lc_get() argument 500 lc_get_cumulative(struct lru_cache *lc, unsigned int enr) lc_get_cumulative() argument 521 lc_try_get(struct lru_cache *lc, unsigned int enr) lc_try_get() argument 606 lc_set(struct lru_cache *lc, unsigned int enr, int index) lc_set() argument [all...] |
/kernel/linux/linux-6.6/lib/ |
H A D | lru_cache.c | 233 static struct hlist_head *lc_hash_slot(struct lru_cache *lc, unsigned int enr) in lc_hash_slot() argument 235 return lc->lc_slot + (enr % lc->nr_elements); in lc_hash_slot() 239 static struct lc_element *__lc_find(struct lru_cache *lc, unsigned int enr, in __lc_find() argument 246 hlist_for_each_entry(e, lc_hash_slot(lc, enr), colision) { in __lc_find() 250 if (e->lc_new_number != enr) in __lc_find() 262 * @enr: element number 270 struct lc_element *lc_find(struct lru_cache *lc, unsigned int enr) in lc_find() argument 272 return __lc_find(lc, enr, 0); in lc_find() 278 * @enr: element number 285 bool lc_is_used(struct lru_cache *lc, unsigned int enr) in lc_is_used() argument 351 __lc_get(struct lru_cache *lc, unsigned int enr, unsigned int flags) __lc_get() argument 470 lc_get(struct lru_cache *lc, unsigned int enr) lc_get() argument 490 lc_get_cumulative(struct lru_cache *lc, unsigned int enr) lc_get_cumulative() argument 511 lc_try_get(struct lru_cache *lc, unsigned int enr) lc_try_get() argument [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | lru_cache.h | 244 extern void lc_set(struct lru_cache *lc, unsigned int enr, int index); 247 extern struct lc_element *lc_get_cumulative(struct lru_cache *lc, unsigned int enr); 248 extern struct lc_element *lc_try_get(struct lru_cache *lc, unsigned int enr); 249 extern struct lc_element *lc_find(struct lru_cache *lc, unsigned int enr); 250 extern struct lc_element *lc_get(struct lru_cache *lc, unsigned int enr); 294 extern bool lc_is_used(struct lru_cache *lc, unsigned int enr);
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | lru_cache.h | 245 extern struct lc_element *lc_get_cumulative(struct lru_cache *lc, unsigned int enr); 246 extern struct lc_element *lc_try_get(struct lru_cache *lc, unsigned int enr); 247 extern struct lc_element *lc_find(struct lru_cache *lc, unsigned int enr); 248 extern struct lc_element *lc_get(struct lru_cache *lc, unsigned int enr); 292 extern bool lc_is_used(struct lru_cache *lc, unsigned int enr);
|