diff options
| author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-12-28 19:58:47 -0500 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-03-14 21:02:12 -0400 |
| commit | ca24130ee412d991ef9925bf1b507f973daa9740 (patch) | |
| tree | 7d0820104958ed81fa29057919015164d4ad4374 /fs/bcachefs/debug.c | |
| parent | 2a2f7aaa8d3151bde9111e6be1254e1f160d1566 (diff) | |
| download | linux-next-ca24130ee412d991ef9925bf1b507f973daa9740.tar.gz linux-next-ca24130ee412d991ef9925bf1b507f973daa9740.zip | |
bcachefs: bch2_bkey_pick_read_device() can now specify a device
To be used for scrub, where we want the read to come from a specific
device.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/debug.c')
| -rw-r--r-- | fs/bcachefs/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/debug.c b/fs/bcachefs/debug.c index 03a3b62d19a9..788af88f6979 100644 --- a/fs/bcachefs/debug.c +++ b/fs/bcachefs/debug.c @@ -191,7 +191,7 @@ void bch2_btree_node_ondisk_to_text(struct printbuf *out, struct bch_fs *c, unsigned offset = 0; int ret; - if (bch2_bkey_pick_read_device(c, bkey_i_to_s_c(&b->key), NULL, &pick) <= 0) { + if (bch2_bkey_pick_read_device(c, bkey_i_to_s_c(&b->key), NULL, &pick, -1) <= 0) { prt_printf(out, "error getting device to read from: invalid device\n"); return; } |
