projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a420eea
)
bcachefs: fix a replicas bug
author
Kent Overstreet
<kent.overstreet@gmail.com>
Fri, 9 Nov 2018 05:55:20 +0000
(
00:55
-0500)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:11 +0000
(17:08 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/replicas.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/replicas.c
b/fs/bcachefs/replicas.c
index 72dd70b00abb2c80489c572a8986bfa7ef870d95..a7c3aca1bf0128a83dc3619d95ccf9610ab48c27 100644
(file)
--- a/
fs/bcachefs/replicas.c
+++ b/
fs/bcachefs/replicas.c
@@
-267,6
+267,8
@@
int bch2_mark_bkey_replicas(struct bch_fs *c,
struct bch_replicas_entry_padded search;
int ret;
+ memset(&search, 0, sizeof(search));
+
if (type == BKEY_TYPE_EXTENTS) {
struct bch_devs_list cached = bch2_bkey_cached_devs(k);
unsigned i;
@@
-564,6
+566,8
@@
bool bch2_bkey_replicas_marked(struct bch_fs *c,
struct bch_replicas_entry_padded search;
bool ret;
+ memset(&search, 0, sizeof(search));
+
if (type == BKEY_TYPE_EXTENTS) {
struct bch_devs_list cached = bch2_bkey_cached_devs(k);
unsigned i;