Commit 616928c3 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Track maximum transaction memory



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>
parent e3738c69
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment