bcachefs: Make more btree_paths available
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 27 Aug 2022 14:30:36 +0000 (10:30 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:39 +0000 (17:09 -0400)
commitb1cdc398ae36689300b4108ce9c90c58cac1ba34
tree968dcd144bbccec57ec19a10a4dbdfcbe94c35a0
parent06a53943222be722e5f85782721e4701bcd424e8
bcachefs: Make more btree_paths available

 - 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: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_iter.h