projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62df3d4
)
bcachefs: Be sure to check ptr->dev in copygc pred function
author
Kent Overstreet
<kent.overstreet@gmail.com>
Wed, 18 Aug 2021 20:19:28 +0000
(16:19 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:10 +0000
(17:09 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/movinggc.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/movinggc.c
b/fs/bcachefs/movinggc.c
index b805371fe99f8b7487166f3f3b3512769e71b82a..651381a5ccc5f7b3577f7f68468ccf90a90539fe 100644
(file)
--- a/
fs/bcachefs/movinggc.c
+++ b/
fs/bcachefs/movinggc.c
@@
-85,6
+85,7
@@
static enum data_cmd copygc_pred(struct bch_fs *c, void *arg,
BUG_ON(i != j);
#endif
if (i >= 0 &&
+ p.ptr.dev == h->data[i].dev &&
p.ptr.offset < h->data[i].offset + ca->mi.bucket_size &&
p.ptr.gen == h->data[i].gen) {
/*