Lines Matching refs:new_bytes
2953 unsigned new_bytes = roundup_pow_of_two(new_top); in __bch2_trans_kmalloc() local
2958 WARN_ON_ONCE(new_bytes > BTREE_TRANS_MEM_MAX); in __bch2_trans_kmalloc()
2961 s->max_mem = max(s->max_mem, new_bytes); in __bch2_trans_kmalloc()
2964 if (trans->mem_bytes >= new_bytes) in __bch2_trans_kmalloc()
2968 new_mem = kmalloc(new_bytes, GFP_NOWAIT|__GFP_NOWARN); in __bch2_trans_kmalloc()
2972 new_mem = kmalloc(new_bytes, GFP_KERNEL); in __bch2_trans_kmalloc()
2988 new_mem = krealloc(trans->mem, new_bytes, GFP_NOWAIT|__GFP_NOWARN); in __bch2_trans_kmalloc()
2992 new_mem = krealloc(trans->mem, new_bytes, GFP_KERNEL); in __bch2_trans_kmalloc()
2993 if (!new_mem && new_bytes <= BTREE_TRANS_MEM_MAX) { in __bch2_trans_kmalloc()
2995 new_bytes = BTREE_TRANS_MEM_MAX; in __bch2_trans_kmalloc()
3005 trans->mem_bytes = new_bytes; in __bch2_trans_kmalloc()
3013 trans->mem_bytes = new_bytes; in __bch2_trans_kmalloc()
3016 trace_and_count(c, trans_restart_mem_realloced, trans, _RET_IP_, new_bytes); in __bch2_trans_kmalloc()