Lines Matching refs:new_aeb

279 		      struct ubi_ainf_peb *new_aeb)  in update_vol()  argument
302 if (aeb->pnum == new_aeb->pnum) { in update_vol()
303 ubi_assert(aeb->lnum == new_aeb->lnum); in update_vol()
304 kmem_cache_free(ai->aeb_slab_cache, new_aeb); in update_vol()
309 cmp_res = ubi_compare_lebs(ubi, aeb, new_aeb->pnum, new_vh); in update_vol()
329 av->vol_id, aeb->lnum, new_aeb->pnum); in update_vol()
331 aeb->ec = new_aeb->ec; in update_vol()
332 aeb->pnum = new_aeb->pnum; in update_vol()
334 aeb->scrub = new_aeb->scrub; in update_vol()
335 kmem_cache_free(ai->aeb_slab_cache, new_aeb); in update_vol()
340 av->vol_id, aeb->lnum, new_aeb->pnum); in update_vol()
341 list_add_tail(&new_aeb->u.list, &ai->erase); in update_vol()
358 rb_link_node(&new_aeb->u.rb, parent, p); in update_vol()
359 rb_insert_color(&new_aeb->u.rb, &av->root); in update_vol()
375 struct ubi_ainf_peb *new_aeb) in process_pool_aeb() argument
383 kmem_cache_free(ai->aeb_slab_cache, new_aeb); in process_pool_aeb()
407 kmem_cache_free(ai->aeb_slab_cache, new_aeb); in process_pool_aeb()
413 return update_vol(ubi, ai, av, new_vh, new_aeb); in process_pool_aeb()
470 struct ubi_ainf_peb *new_aeb; in scan_pool() local
539 new_aeb = kmem_cache_alloc(ai->aeb_slab_cache, in scan_pool()
541 if (!new_aeb) { in scan_pool()
546 new_aeb->ec = be64_to_cpu(ech->ec); in scan_pool()
547 new_aeb->pnum = pnum; in scan_pool()
548 new_aeb->lnum = be32_to_cpu(vh->lnum); in scan_pool()
549 new_aeb->sqnum = be64_to_cpu(vh->sqnum); in scan_pool()
550 new_aeb->copy_flag = vh->copy_flag; in scan_pool()
551 new_aeb->scrub = scrub; in scan_pool()
553 if (*max_sqnum < new_aeb->sqnum) in scan_pool()
554 *max_sqnum = new_aeb->sqnum; in scan_pool()
556 err = process_pool_aeb(ubi, ai, vh, new_aeb); in scan_pool()