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:
9fe8ec8
)
bcachefs: Fix reference to invalid bucket in copygc
author
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 13 Jul 2025 21:19:34 +0000
(17:19 -0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Wed, 16 Jul 2025 21:32:33 +0000
(17:32 -0400)
Use bch2_dev_bucket_tryget() instead of bch2_dev_tryget() before
checking the bucket bitmap.
Reported-by: syzbot+3168625f36f4a539237e@syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/movinggc.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/movinggc.c
b/fs/bcachefs/movinggc.c
index
27e68d4
..
5e6de91
100644
(file)
--- a/
fs/bcachefs/movinggc.c
+++ b/
fs/bcachefs/movinggc.c
@@
-71,7
+71,7
@@
static int bch2_bucket_is_movable(struct btree_trans *trans,
if (ret)
return ret;
- struct bch_dev *ca = bch2_dev_
tryget(c, k.k->p.inode
);
+ struct bch_dev *ca = bch2_dev_
bucket_tryget(c, k.k->p
);
if (!ca)
goto out;