summaryrefslogtreecommitdiff
path: root/rust/helpers/err.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-04-22 11:45:25 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2025-04-25 02:09:52 +0300
commitc4f89a1d3590243ef1bbd55557a1f55a4a93927d (patch)
tree054713fa34d15009f740fbec1887d22295b2dac2 /rust/helpers/err.c
parent394ef278e1fdadc1f27acd8c0549a8831dfc1833 (diff)
downloadlinux-c4f89a1d3590243ef1bbd55557a1f55a4a93927d.tar.xz
bcachefs: Make btree_iter_peek_prev() assert more precise
The issue this assert is guarding against is that in BTREE_ITER_filter_snapshots mode we only want to be iterating within a single inode number - if we iterate into another inode number with keys for a different snapshot tree, we'll loop arbitrarily long before finding a key we can return. This comes up in the unit tests, where we're using inode 0 for our test keys. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'rust/helpers/err.c')
0 files changed, 0 insertions, 0 deletions