Home
last modified time | relevance | path

Searched refs:mem_bytes (Results 1 – 4 of 4) sorted by relevance

/linux/fs/bcachefs/
H A Dbtree_iter.h542 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()
H A Dbackpointers.c736 u64 mem_bytes = i.totalram * i.mem_unit; in mem_may_pin_bytes() local
737 return div_u64(mem_bytes * c->opts.fsck_memory_usage_percent, 100); in mem_may_pin_bytes()
H A Dbtree_types.h490 unsigned mem_bytes; member
H A Dbtree_iter.c2952 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()