diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-04-15 22:54:10 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-04-16 19:14:00 -0400 |
commit | fabb4d49854281027454b0fa305d33f6c9ec4b47 (patch) | |
tree | 2ad585522f988b9f069b291f0eaa0cda599ae7df /fs | |
parent | 9fd5a48a1e3ff79ed54922668279ccb4d7190a62 (diff) | |
download | linux-fabb4d49854281027454b0fa305d33f6c9ec4b47.tar.gz linux-fabb4d49854281027454b0fa305d33f6c9ec4b47.tar.bz2 linux-fabb4d49854281027454b0fa305d33f6c9ec4b47.zip |
bcachefs: node scan: ignore multiple nodes with same seq if interior
Interior nodes are not really needed, when we have to scan - but if this
pops up for leaf nodes we'll need a real heuristic.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/bcachefs/btree_node_scan.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/btree_node_scan.c b/fs/bcachefs/btree_node_scan.c index 866bd278439f..c60794264da2 100644 --- a/fs/bcachefs/btree_node_scan.c +++ b/fs/bcachefs/btree_node_scan.c @@ -302,6 +302,8 @@ again: start->max_key = bpos_predecessor(n->min_key); start->range_updated = true; + } else if (n->level) { + n->overwritten = true; } else { struct printbuf buf = PRINTBUF; |