diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-02-24 19:14:36 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-03-10 14:36:57 -0400 |
commit | 560ceb6a4d9e3bea57c29f5f3a7a1d671dfc7983 (patch) | |
tree | d669ea13db4db135d3edf07dfec1f7b95fec7295 /lib/string.c | |
parent | 2d9720d70a26032492ad3a82765cdfaaf4bd038d (diff) |
bcachefs: Fix BTREE_ITER_FILTER_SNAPSHOTS on inodes btreebcachefs-for-v6.7-stable-20240310bcachefs-for-v6.7
If we're in FILTER_SNAPSHOTS mode and we start scanning a range of the
keyspace where no keys are visible in the current snapshot, we have a
problem - we'll scan for a very long time before scanning terminates.
Awhile back, this was fixed for most cases with peek_upto() (and
assertions that enforce that it's being used).
But the fix missed the fact that the inodes btree is different - every
key offset is in a different snapshot tree, not just the inode field.
Fixes:
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
(cherry picked from commit 204f45140faa0772d2ca1b3de96d1c0fb3db8e77)
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions