projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3e1f44
)
bcachefs: Fix debugfs -bfloat-failed
author
Kent Overstreet
<kent.overstreet@gmail.com>
Wed, 22 Dec 2021 02:57:10 +0000
(21:57 -0500)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:19 +0000
(17:09 -0400)
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>
fs/bcachefs/debug.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/debug.c
b/fs/bcachefs/debug.c
index 5ea29528ab67e37f503885a3fb7e29ac66e8d850..02a5ef5ecb3e4d91bf850e29c8bac12e5eaa92f9 100644
(file)
--- 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))) {