mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-13 08:20:40 -04:00
bcachefs: pass bch_dev to read_from_stale_dirty_pointer()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
@@ -758,11 +758,11 @@ int __bch2_read_indirect_extent(struct btree_trans *trans,
|
||||
}
|
||||
|
||||
static noinline void read_from_stale_dirty_pointer(struct btree_trans *trans,
|
||||
struct bch_dev *ca,
|
||||
struct bkey_s_c k,
|
||||
struct bch_extent_ptr ptr)
|
||||
{
|
||||
struct bch_fs *c = trans->c;
|
||||
struct bch_dev *ca = bch2_dev_bkey_exists(c, ptr.dev);
|
||||
struct btree_iter iter;
|
||||
struct printbuf buf = PRINTBUF;
|
||||
int ret;
|
||||
@@ -842,7 +842,7 @@ int __bch2_read_extent(struct btree_trans *trans, struct bch_read_bio *orig,
|
||||
if ((flags & BCH_READ_IN_RETRY) &&
|
||||
!pick.ptr.cached &&
|
||||
unlikely(dev_ptr_stale(ca, &pick.ptr))) {
|
||||
read_from_stale_dirty_pointer(trans, k, pick.ptr);
|
||||
read_from_stale_dirty_pointer(trans, ca, k, pick.ptr);
|
||||
bch2_mark_io_failure(failed, &pick);
|
||||
goto retry_pick;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user