bcachefs: Fix read retry path for indirect extents
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 15 Mar 2021 01:30:08 +0000 (21:30 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:56 +0000 (17:08 -0400)
commit5ff75ccbbc3f262158e5bf02c639539a4da93a43
tree184cf5fc1597cfe6117fbdff3e089a668e1ed234
parentc8d94403de0534030e43efce5c2f1d6c2d79dcda
bcachefs: Fix read retry path for indirect extents

In the read path, for retry of indirect extents to work we need to
differentiate between the location in the btree the read was for, vs.
the location where we found the data. This patch adds that plumbing to
bch_read_bio.

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