diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-12-22 05:57:10 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:09:19 +0300 |
commit | d05117e36a7290cbfa8ebcc05c6facb60a5bcefb (patch) | |
tree | 55eec1650b9f957c6d25aed71259b1f121f0f4e7 | |
parent | f3e1f4443383f72975f12caece6f13e63f21a719 (diff) | |
download | linux-d05117e36a7290cbfa8ebcc05c6facb60a5bcefb.tar.xz |
bcachefs: Fix debugfs -bfloat-failed
It wasn't updated for snapshots - it's iterating across keys in all
snapshots, so needs to be specifying BTREE_ITER_ALL_SNAPSHOTS.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
-rw-r--r-- | fs/bcachefs/debug.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/bcachefs/debug.c b/fs/bcachefs/debug.c index 5ea29528ab67..02a5ef5ecb3e 100644 --- a/fs/bcachefs/debug.c +++ b/fs/bcachefs/debug.c @@ -373,7 +373,9 @@ static ssize_t bch2_read_bfloat_failed(struct file *file, char __user *buf, bch2_trans_init(&trans, i->c, 0, 0); - bch2_trans_iter_init(&trans, &iter, i->id, i->from, BTREE_ITER_PREFETCH); + bch2_trans_iter_init(&trans, &iter, i->id, i->from, + BTREE_ITER_PREFETCH| + BTREE_ITER_ALL_SNAPSHOTS); while ((k = bch2_btree_iter_peek(&iter)).k && !(err = bkey_err(k))) { |