projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e9940d
)
bcachefs: Fix bch2_sb_downgrade_update()
author
Kent Overstreet
<kent.overstreet@linux.dev>
Mon, 17 Jun 2024 15:31:00 +0000
(11:31 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Wed, 19 Jun 2024 22:27:24 +0000
(18:27 -0400)
Missing enum conversion
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/sb-downgrade.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/sb-downgrade.c
b/fs/bcachefs/sb-downgrade.c
index
3fb23e3
..
4710b61
100644
(file)
--- a/
fs/bcachefs/sb-downgrade.c
+++ b/
fs/bcachefs/sb-downgrade.c
@@
-228,7
+228,7
@@
int bch2_sb_downgrade_update(struct bch_fs *c)
dst = (void *) &darray_top(table);
dst->version = cpu_to_le16(src->version);
- dst->recovery_passes[0] = cpu_to_le64(
src->recovery_passes
);
+ dst->recovery_passes[0] = cpu_to_le64(
bch2_recovery_passes_to_stable(src->recovery_passes)
);
dst->recovery_passes[1] = 0;
dst->nr_errors = cpu_to_le16(src->nr_errors);
for (unsigned i = 0; i < src->nr_errors; i++)