Lines Matching refs:nreg
243 struct dm_region *reg, *nreg; in dm_region_hash_destroy() local
247 list_for_each_entry_safe(reg, nreg, rh->buckets + h, in dm_region_hash_destroy()
293 struct dm_region *reg, *nreg; in __rh_alloc() local
295 nreg = mempool_alloc(&rh->region_pool, GFP_ATOMIC); in __rh_alloc()
296 if (unlikely(!nreg)) in __rh_alloc()
297 nreg = kmalloc(sizeof(*nreg), GFP_NOIO | __GFP_NOFAIL); in __rh_alloc()
299 nreg->state = rh->log->type->in_sync(rh->log, region, 1) ? in __rh_alloc()
301 nreg->rh = rh; in __rh_alloc()
302 nreg->key = region; in __rh_alloc()
303 INIT_LIST_HEAD(&nreg->list); in __rh_alloc()
304 atomic_set(&nreg->pending, 0); in __rh_alloc()
305 bio_list_init(&nreg->delayed_bios); in __rh_alloc()
311 mempool_free(nreg, &rh->region_pool); in __rh_alloc()
313 __rh_insert(rh, nreg); in __rh_alloc()
314 if (nreg->state == DM_RH_CLEAN) { in __rh_alloc()
316 list_add(&nreg->list, &rh->clean_regions); in __rh_alloc()
320 reg = nreg; in __rh_alloc()