Lines Matching refs:structs
507 struct prealloc *structs, in get_cell() argument
514 cell_prealloc = prealloc_get_cell(structs); in get_cell()
519 prealloc_put_cell(structs, cell_prealloc); in get_cell()
1250 static void promote(struct cache *cache, struct prealloc *structs, in promote() argument
1254 struct dm_cache_migration *mg = prealloc_get_migration(structs); in promote()
1274 static void writeback(struct cache *cache, struct prealloc *structs, in writeback() argument
1278 struct dm_cache_migration *mg = prealloc_get_migration(structs); in writeback()
1298 static void demote_then_promote(struct cache *cache, struct prealloc *structs, in demote_then_promote() argument
1304 struct dm_cache_migration *mg = prealloc_get_migration(structs); in demote_then_promote()
1329 static void invalidate(struct cache *cache, struct prealloc *structs, in invalidate() argument
1333 struct dm_cache_migration *mg = prealloc_get_migration(structs); in invalidate()
1353 static void discard(struct cache *cache, struct prealloc *structs, in discard() argument
1356 struct dm_cache_migration *mg = prealloc_get_migration(structs); in discard()
1406 static void process_discard_bio(struct cache *cache, struct prealloc *structs, in process_discard_bio() argument
1419 cell_prealloc = prealloc_get_cell(structs); in process_discard_bio()
1422 structs, &new_ocell); in process_discard_bio()
1426 discard(cache, structs, new_ocell); in process_discard_bio()
1453 struct prealloc *structs; member
1467 struct dm_bio_prison_cell *cell_prealloc = prealloc_get_cell(l->structs); in cell_locker()
1471 l->structs, &l->cell); in cell_locker()
1474 static void process_bio(struct cache *cache, struct prealloc *structs, in process_bio() argument
1489 cell_prealloc = prealloc_get_cell(structs); in process_bio()
1492 structs, &new_ocell); in process_bio()
1501 ool.structs = structs; in process_bio()
1523 invalidate(cache, structs, block, lookup_result.cblock, new_ocell); in process_bio()
1556 promote(cache, structs, block, lookup_result.cblock, new_ocell); in process_bio()
1563 demote_then_promote(cache, structs, lookup_result.old_oblock, in process_bio()
1605 struct prealloc structs; in process_deferred_bios() local
1607 memset(&structs, 0, sizeof(structs)); in process_deferred_bios()
1621 if (prealloc_data_structs(cache, &structs)) { in process_deferred_bios()
1633 process_discard_bio(cache, &structs, bio); in process_deferred_bios()
1635 process_bio(cache, &structs, bio); in process_deferred_bios()
1638 prealloc_free_structs(cache, &structs); in process_deferred_bios()
1686 struct prealloc structs; in writeback_some_dirty_blocks() local
1689 memset(&structs, 0, sizeof(structs)); in writeback_some_dirty_blocks()
1692 if (prealloc_data_structs(cache, &structs)) in writeback_some_dirty_blocks()
1699 r = get_cell(cache, oblock, &structs, &old_ocell); in writeback_some_dirty_blocks()
1705 writeback(cache, &structs, oblock, cblock, old_ocell); in writeback_some_dirty_blocks()
1708 prealloc_free_structs(cache, &structs); in writeback_some_dirty_blocks()