Home
last modified time | relevance | path

Searched refs:c_pages (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/block/null_blk/
H A Dmain.c950 struct nullb_page *c_pages[FREE_BATCH]; in null_make_cache_space() local
959 (void **)c_pages, nullb->cache_flush_pos, FREE_BATCH); in null_make_cache_space()
961 * nullb_flush_cache_page could unlock before using the c_pages. To in null_make_cache_space()
965 nullb->cache_flush_pos = c_pages[i]->page->index; in null_make_cache_space()
970 if (test_bit(NULLB_PAGE_LOCK, c_pages[i]->bitmap)) in null_make_cache_space()
971 c_pages[i] = NULL; in null_make_cache_space()
973 __set_bit(NULLB_PAGE_LOCK, c_pages[i]->bitmap); in null_make_cache_space()
978 if (c_pages[i] == NULL) in null_make_cache_space()
980 err = null_flush_cache_page(nullb, c_pages[i]); in null_make_cache_space()
/kernel/linux/linux-6.6/drivers/block/null_blk/
H A Dmain.c1088 struct nullb_page *c_pages[FREE_BATCH]; in null_make_cache_space() local
1097 (void **)c_pages, nullb->cache_flush_pos, FREE_BATCH); in null_make_cache_space()
1099 * nullb_flush_cache_page could unlock before using the c_pages. To in null_make_cache_space()
1103 nullb->cache_flush_pos = c_pages[i]->page->index; in null_make_cache_space()
1108 if (test_bit(NULLB_PAGE_LOCK, c_pages[i]->bitmap)) in null_make_cache_space()
1109 c_pages[i] = NULL; in null_make_cache_space()
1111 __set_bit(NULLB_PAGE_LOCK, c_pages[i]->bitmap); in null_make_cache_space()
1116 if (c_pages[i] == NULL) in null_make_cache_space()
1118 err = null_flush_cache_page(nullb, c_pages[i]); in null_make_cache_space()

Completed in 11 milliseconds