Searched refs:l_mg (Results 1 – 8 of 8) sorted by relevance
/drivers/lightnvm/ |
D | pblk-core.c | 167 struct pblk_line_mgmt *l_mg = &pblk->l_mg; in __pblk_map_invalidate() local 189 spin_lock(&l_mg->gc_lock); in __pblk_map_invalidate() 194 spin_unlock(&l_mg->gc_lock); in __pblk_map_invalidate() 200 spin_unlock(&l_mg->gc_lock); in __pblk_map_invalidate() 410 struct pblk_line_mgmt *l_mg = &pblk->l_mg; in pblk_line_gc_list() local 421 move_list = &l_mg->gc_werr_list; in pblk_line_gc_list() 427 move_list = &l_mg->gc_full_list; in pblk_line_gc_list() 432 move_list = &l_mg->gc_high_list; in pblk_line_gc_list() 437 move_list = &l_mg->gc_mid_list; in pblk_line_gc_list() 442 move_list = &l_mg->gc_low_list; in pblk_line_gc_list() [all …]
|
D | pblk-init.c | 542 struct pblk_line_mgmt *l_mg = &pblk->l_mg; in pblk_line_mg_free() local 545 kfree(l_mg->bb_template); in pblk_line_mg_free() 546 kfree(l_mg->bb_aux); in pblk_line_mg_free() 547 kfree(l_mg->vsc_list); in pblk_line_mg_free() 550 kfree(l_mg->sline_meta[i]); in pblk_line_mg_free() 551 kvfree(l_mg->eline_meta[i]->buf); in pblk_line_mg_free() 552 kfree(l_mg->eline_meta[i]); in pblk_line_mg_free() 555 mempool_destroy(l_mg->bitmap_pool); in pblk_line_mg_free() 556 kmem_cache_destroy(l_mg->bitmap_cache); in pblk_line_mg_free() 559 static void pblk_line_meta_free(struct pblk_line_mgmt *l_mg, in pblk_line_meta_free() argument [all …]
|
D | pblk-sysfs.c | 169 struct pblk_line_mgmt *l_mg = &pblk->l_mg; in pblk_sysfs_lines() local 183 spin_lock(&l_mg->free_lock); in pblk_sysfs_lines() 184 cur_data = (l_mg->data_line) ? l_mg->data_line->id : -1; in pblk_sysfs_lines() 185 cur_log = (l_mg->log_line) ? l_mg->log_line->id : -1; in pblk_sysfs_lines() 186 nr_free_lines = l_mg->nr_free_lines; in pblk_sysfs_lines() 188 list_for_each_entry(line, &l_mg->free_list, list) in pblk_sysfs_lines() 190 spin_unlock(&l_mg->free_lock); in pblk_sysfs_lines() 192 spin_lock(&l_mg->close_lock); in pblk_sysfs_lines() 193 list_for_each_entry(line, &l_mg->emeta_list, list) in pblk_sysfs_lines() 195 spin_unlock(&l_mg->close_lock); in pblk_sysfs_lines() [all …]
|
D | pblk-recovery.c | 96 struct pblk_line_mgmt *l_mg = &pblk->l_mg; in pblk_update_line_wp() local 102 spin_lock(&l_mg->free_lock); in pblk_update_line_wp() 113 spin_unlock(&l_mg->free_lock); in pblk_update_line_wp() 654 struct pblk_line_mgmt *l_mg = &pblk->l_mg; in pblk_recov_l2p() local 668 spin_lock(&l_mg->free_lock); in pblk_recov_l2p() 669 meta_line = find_first_zero_bit(&l_mg->meta_bitmap, PBLK_DATA_LINES); in pblk_recov_l2p() 670 set_bit(meta_line, &l_mg->meta_bitmap); in pblk_recov_l2p() 671 smeta = l_mg->sline_meta[meta_line]; in pblk_recov_l2p() 672 emeta = l_mg->eline_meta[meta_line]; in pblk_recov_l2p() 674 spin_unlock(&l_mg->free_lock); in pblk_recov_l2p() [all …]
|
D | pblk-gc.c | 64 struct pblk_line_mgmt *l_mg = &pblk->l_mg; in pblk_put_line_back() local 67 spin_lock(&l_mg->gc_lock); in pblk_put_line_back() 83 spin_unlock(&l_mg->gc_lock); in pblk_put_line_back() 409 struct pblk_line_mgmt *l_mg = &pblk->l_mg; in pblk_gc_free_full_lines() local 414 spin_lock(&l_mg->gc_lock); in pblk_gc_free_full_lines() 415 if (list_empty(&l_mg->gc_full_list)) { in pblk_gc_free_full_lines() 416 spin_unlock(&l_mg->gc_lock); in pblk_gc_free_full_lines() 420 line = list_first_entry(&l_mg->gc_full_list, in pblk_gc_free_full_lines() 431 spin_unlock(&l_mg->gc_lock); in pblk_gc_free_full_lines() 446 struct pblk_line_mgmt *l_mg = &pblk->l_mg; in pblk_gc_run() local [all …]
|
D | pblk-write.c | 371 struct pblk_line_mgmt *l_mg = &pblk->l_mg; in pblk_submit_meta_io() local 406 spin_lock(&l_mg->close_lock); in pblk_submit_meta_io() 410 spin_unlock(&l_mg->close_lock); in pblk_submit_meta_io() 424 spin_lock(&l_mg->close_lock); in pblk_submit_meta_io() 427 spin_unlock(&l_mg->close_lock); in pblk_submit_meta_io() 473 struct pblk_line_mgmt *l_mg = &pblk->l_mg; in pblk_should_submit_meta_io() local 476 spin_lock(&l_mg->close_lock); in pblk_should_submit_meta_io() 477 if (list_empty(&l_mg->emeta_list)) { in pblk_should_submit_meta_io() 478 spin_unlock(&l_mg->close_lock); in pblk_should_submit_meta_io() 481 meta_line = list_first_entry(&l_mg->emeta_list, struct pblk_line, list); in pblk_should_submit_meta_io() [all …]
|
D | pblk-rl.c | 215 struct pblk_line_mgmt *l_mg = &pblk->l_mg; in pblk_rl_init() local 221 sec_meta = (lm->smeta_sec + lm->emeta_sec[0]) * l_mg->nr_free_lines; in pblk_rl_init()
|
D | pblk.h | 601 struct pblk_line_mgmt l_mg; /* Line management */ member
|