Lines Matching refs:structs

556 		    struct prealloc *structs,  in get_cell()  argument
563 cell_prealloc = prealloc_get_cell(structs); in get_cell()
568 prealloc_put_cell(structs, cell_prealloc); in get_cell()
1469 static void promote(struct cache *cache, struct prealloc *structs, in promote() argument
1473 struct dm_cache_migration *mg = prealloc_get_migration(structs); in promote()
1493 static void writeback(struct cache *cache, struct prealloc *structs, in writeback() argument
1497 struct dm_cache_migration *mg = prealloc_get_migration(structs); in writeback()
1517 static void demote_then_promote(struct cache *cache, struct prealloc *structs, in demote_then_promote() argument
1523 struct dm_cache_migration *mg = prealloc_get_migration(structs); in demote_then_promote()
1548 static void invalidate(struct cache *cache, struct prealloc *structs, in invalidate() argument
1552 struct dm_cache_migration *mg = prealloc_get_migration(structs); in invalidate()
1572 static void discard(struct cache *cache, struct prealloc *structs, in discard() argument
1575 struct dm_cache_migration *mg = prealloc_get_migration(structs); in discard()
1625 static void process_discard_bio(struct cache *cache, struct prealloc *structs, in process_discard_bio() argument
1638 cell_prealloc = prealloc_get_cell(structs); in process_discard_bio()
1641 structs, &new_ocell); in process_discard_bio()
1645 discard(cache, structs, new_ocell); in process_discard_bio()
1777 struct prealloc *structs; member
1791 struct dm_bio_prison_cell *cell_prealloc = prealloc_get_cell(l->structs); in cell_locker()
1795 l->structs, &l->cell); in cell_locker()
1798 static void process_cell(struct cache *cache, struct prealloc *structs, in process_cell() argument
1815 ool.structs = structs; in process_cell()
1837 invalidate(cache, structs, block, lookup_result.cblock, new_ocell); in process_cell()
1870 promote(cache, structs, block, lookup_result.cblock, new_ocell); in process_cell()
1877 demote_then_promote(cache, structs, lookup_result.old_oblock, in process_cell()
1894 static void process_bio(struct cache *cache, struct prealloc *structs, in process_bio() argument
1904 cell_prealloc = prealloc_get_cell(structs); in process_bio()
1907 structs, &new_ocell); in process_bio()
1911 process_cell(cache, structs, new_ocell); in process_bio()
1958 struct prealloc structs; in process_deferred_bios() local
1960 memset(&structs, 0, sizeof(structs)); in process_deferred_bios()
1975 if (prealloc_data_structs(cache, &structs)) { in process_deferred_bios()
1987 process_discard_bio(cache, &structs, bio); in process_deferred_bios()
1989 process_bio(cache, &structs, bio); in process_deferred_bios()
1993 prealloc_free_structs(cache, &structs); in process_deferred_bios()
2002 struct prealloc structs; in process_deferred_cells() local
2004 memset(&structs, 0, sizeof(structs)); in process_deferred_cells()
2019 if (prealloc_data_structs(cache, &structs)) { in process_deferred_cells()
2026 process_cell(cache, &structs, cell); in process_deferred_cells()
2030 prealloc_free_structs(cache, &structs); in process_deferred_cells()
2078 struct prealloc structs; in writeback_some_dirty_blocks() local
2082 memset(&structs, 0, sizeof(structs)); in writeback_some_dirty_blocks()
2089 if (prealloc_data_structs(cache, &structs) || in writeback_some_dirty_blocks()
2090 get_cell(cache, oblock, &structs, &old_ocell)) { in writeback_some_dirty_blocks()
2095 writeback(cache, &structs, oblock, cblock, old_ocell); in writeback_some_dirty_blocks()
2099 prealloc_free_structs(cache, &structs); in writeback_some_dirty_blocks()