]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Fix check_backpointers_to_extents range limiting
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 18 Nov 2024 05:32:57 +0000 (00:32 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 21 Dec 2024 06:36:19 +0000 (01:36 -0500)
commite48fda6cdc2799ef4a63692f0f11240613067b38
tree777f08134441002f720c6c15f1ccf5725d3a0185
parenteb25733aba20544035d56bd53fee5c8ecf87bc2e
bcachefs: Fix check_backpointers_to_extents range limiting

bch2_get_btree_in_memory_pos() will return positions that refer directly
to the btree it's checking will fit in memory - i.e. backpointer
positions, not buckets.

This also means check_bp_exists() no longer has to refer to the device,
and we can delete some code.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/backpointers.c