Home
last modified time | relevance | path

Searched refs:cell_prealloc (Results 1 – 6 of 6) sorted by relevance

/linux-6.1.9/drivers/md/
Ddm-bio-prison-v2.c116 struct dm_bio_prison_cell_v2 *cell_prealloc, in __find_or_insert() argument
141 __setup_new_cell(key, cell_prealloc); in __find_or_insert()
142 *result = cell_prealloc; in __find_or_insert()
143 rb_link_node(&cell_prealloc->node, parent, new); in __find_or_insert()
144 rb_insert_color(&cell_prealloc->node, &prison->cells); in __find_or_insert()
153 struct dm_bio_prison_cell_v2 *cell_prealloc, in __get() argument
156 if (__find_or_insert(prison, key, cell_prealloc, cell)) { in __get()
176 struct dm_bio_prison_cell_v2 *cell_prealloc, in dm_cell_get_v2() argument
182 r = __get(prison, key, lock_level, inmate, cell_prealloc, cell_result); in dm_cell_get_v2()
228 struct dm_bio_prison_cell_v2 *cell_prealloc, in __lock() argument
[all …]
Ddm-bio-prison-v1.c112 struct dm_bio_prison_cell *cell_prealloc, in __bio_detain() argument
137 __setup_new_cell(key, inmate, cell_prealloc); in __bio_detain()
138 *cell_result = cell_prealloc; in __bio_detain()
140 rb_link_node(&cell_prealloc->node, parent, new); in __bio_detain()
141 rb_insert_color(&cell_prealloc->node, &prison->cells); in __bio_detain()
149 struct dm_bio_prison_cell *cell_prealloc, in bio_detain() argument
155 r = __bio_detain(prison, key, inmate, cell_prealloc, cell_result); in bio_detain()
164 struct dm_bio_prison_cell *cell_prealloc, in dm_bio_detain() argument
167 return bio_detain(prison, key, inmate, cell_prealloc, cell_result); in dm_bio_detain()
173 struct dm_bio_prison_cell *cell_prealloc, in dm_get_cell() argument
[all …]
Ddm-bio-prison-v2.h91 struct dm_bio_prison_cell_v2 *cell_prealloc,
118 struct dm_bio_prison_cell_v2 *cell_prealloc,
Ddm-bio-prison-v1.h72 struct dm_bio_prison_cell *cell_prealloc,
84 struct dm_bio_prison_cell *cell_prealloc,
Ddm-cache-target.c579 struct dm_bio_prison_cell_v2 *cell_prealloc, *cell; in bio_detain_shared() local
581 cell_prealloc = alloc_prison_cell(cache); /* FIXME: allow wait if calling from worker */ in bio_detain_shared()
584 r = dm_cell_get_v2(cache->prison, &key, lock_level(bio), bio, cell_prealloc, &cell); in bio_detain_shared()
589 free_prison_cell(cache, cell_prealloc); in bio_detain_shared()
593 if (cell != cell_prealloc) in bio_detain_shared()
594 free_prison_cell(cache, cell_prealloc); in bio_detain_shared()
Ddm-thin.c445 struct dm_bio_prison_cell *cell_prealloc; in bio_detain() local
451 cell_prealloc = dm_bio_prison_alloc_cell(pool->prison, GFP_NOIO); in bio_detain()
453 r = dm_bio_detain(pool->prison, key, bio, cell_prealloc, cell_result); in bio_detain()
459 dm_bio_prison_free_cell(pool->prison, cell_prealloc); in bio_detain()