Searched refs:mem_bytes (Results 1 – 4 of 4) sorted by relevance
542 if (likely(trans->mem_top + size <= trans->mem_bytes)) { in bch2_trans_kmalloc()557 if (likely(trans->mem_top + size <= trans->mem_bytes)) { in bch2_trans_kmalloc_nomemzero()
736 u64 mem_bytes = i.totalram * i.mem_unit; in mem_may_pin_bytes() local737 return div_u64(mem_bytes * c->opts.fsck_memory_usage_percent, 100); in mem_may_pin_bytes()
490 unsigned mem_bytes; member
2952 unsigned old_bytes = trans->mem_bytes; in __bch2_trans_kmalloc()2964 if (trans->mem_bytes >= new_bytes) in __bch2_trans_kmalloc()3005 trans->mem_bytes = new_bytes; in __bch2_trans_kmalloc()3013 trans->mem_bytes = new_bytes; in __bch2_trans_kmalloc()3221 trans->mem_bytes = expected_mem_bytes; in __bch2_trans_get()