From: Kent Overstreet Date: Wed, 22 Dec 2021 02:57:10 +0000 (-0500) Subject: bcachefs: Fix debugfs -bfloat-failed X-Git-Tag: v6.7-rc1~201^2~1243 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d05117e36a7290cbfa8ebcc05c6facb60a5bcefb;p=thirdparty%2Fkernel%2Flinux.git 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 --- diff --git a/fs/bcachefs/debug.c b/fs/bcachefs/debug.c index 5ea29528ab67e..02a5ef5ecb3e4 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))) {