bcachefs: Fix bch2_check_fix_ptrs()
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 4 Jan 2022 23:35:00 +0000 (18:35 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:22 +0000 (17:09 -0400)
commit4e08446db05427ad0972eba58d6447b21c1ca7e1
treee287b8be0e369a8d0afefaff11a57ae475ac2fb5
parent9714baaa52d63416d1f7577b630831fc885bfa1f
bcachefs: Fix bch2_check_fix_ptrs()

The repair for for btree_ptrs was saying one thing and doing another -
fortunately, that code can just be deleted.

Also, when we update a btree node pointer, we also have to update node
in memery, if it exists in the btree node cache - this fixes
bch2_check_fix_ptrs() to do that.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/btree_gc.c