bcachefs: Fix iterator overflow in move path
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 21 Dec 2020 02:42:19 +0000 (21:42 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:50 +0000 (17:08 -0400)
commitf0e70018d14ef94a5f680c977591ccb6cf29e9ca
tree73ed1782d13e819834b3290fbeae2cffbb0f2067
parent07bd4c285b79e068d2e6986a4cc60703434f1eed
bcachefs: Fix iterator overflow in move path

The move path was calling bch2_bucket_io_time_reset() for cached
pointers (which it shouldn't have been), and then not calling
bch2_trans_reset() when it got -EINTR (indicating transaction restart).
Oops.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/io.c
fs/bcachefs/move.c