• Kent Overstreet's avatar
    bcachefs: Make more btree_paths available · b1cdc398
    Kent Overstreet authored
     - Don't decrease BTREE_ITER_MAX when building with CONFIG_LOCKDEP
       anymore. The lockdep table sizes are configurable now, we don't need
       this anymore.
     - btree_trans_too_many_iters() is less conservative now. Previously it
       was causing a transaction restart if we had used more than
       BTREE_ITER_MAX / 2 paths, change this to BTREE_ITER_MAX - 8.
    
    This helps with excessive transaction restarts/livelocks in the bucket
    allocator path.
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
    b1cdc398
btree_iter.h 17.7 KB