Lines Matching refs:new_bytes
3106 unsigned new_bytes = roundup_pow_of_two(new_top); in __bch2_trans_kmalloc() local
3111 WARN_ON_ONCE(new_bytes > BTREE_TRANS_MEM_MAX); in __bch2_trans_kmalloc()
3118 s->max_mem = max(s->max_mem, new_bytes); in __bch2_trans_kmalloc()
3121 if (trans->mem_bytes >= new_bytes) in __bch2_trans_kmalloc()
3125 new_mem = kmalloc(new_bytes, GFP_NOWAIT|__GFP_NOWARN); in __bch2_trans_kmalloc()
3129 new_mem = kmalloc(new_bytes, GFP_KERNEL); in __bch2_trans_kmalloc()
3145 new_mem = krealloc(trans->mem, new_bytes, GFP_NOWAIT|__GFP_NOWARN); in __bch2_trans_kmalloc()
3149 new_mem = krealloc(trans->mem, new_bytes, GFP_KERNEL); in __bch2_trans_kmalloc()
3150 if (!new_mem && new_bytes <= BTREE_TRANS_MEM_MAX) { in __bch2_trans_kmalloc()
3152 new_bytes = BTREE_TRANS_MEM_MAX; in __bch2_trans_kmalloc()
3162 trans->mem_bytes = new_bytes; in __bch2_trans_kmalloc()
3170 trans->mem_bytes = new_bytes; in __bch2_trans_kmalloc()
3173 trace_and_count(c, trans_restart_mem_realloced, trans, _RET_IP_, new_bytes); in __bch2_trans_kmalloc()