• Kent Overstreet's avatar
    bcachefs: Track maximum transaction memory · 616928c3
    Kent Overstreet authored
    This patch
     - tracks maximum bch2_trans_kmalloc() memory used in btree_transaction_stats
     - makes it available in debugfs
     - switches bch2_trans_init() to using that for the amount of memory to
       preallocate, instead of the parameter passed in
    
    This drastically reduces transaction restarts, and means we no longer
    need to track this in the source code.
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
    616928c3
btree_iter.h 17.7 KB