Skip to content

Commit 7125063

Browse files
author
Kent Overstreet
committed
bcachefs: Don't decrease BTREE_ITER_MAX when LOCKDEP=y
Running with fewer max btree paths doesn't work anymore when replication is enabled - as we've added e.g. the freespace and bucket gens btrees, we naturally end up needing more btree paths. This is an issue with lockdep, we end up taking more locks than lockdep will track (the MAX_LOCKD_DEPTH constant). But bcachefs as merged does not yet support lockdep anyways, so we can leave that for later. Signed-off-by: Kent Overstreet <[email protected]>
1 parent 497c57a commit 7125063

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

fs/bcachefs/btree_types.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -363,11 +363,7 @@ struct btree_insert_entry {
363363
unsigned long ip_allocated;
364364
};
365365

366-
#ifndef CONFIG_LOCKDEP
367366
#define BTREE_ITER_MAX 64
368-
#else
369-
#define BTREE_ITER_MAX 32
370-
#endif
371367

372368
struct btree_trans_commit_hook;
373369
typedef int (btree_trans_commit_hook_fn)(struct btree_trans *, struct btree_trans_commit_hook *);

0 commit comments

Comments
 (0)