Skip to content

Commit 9667214

Browse files
author
Kent Overstreet
committed
bcachefs: Fix ref in trans_mark_dev_sbs() error path
Reported-by: [email protected] Signed-off-by: Kent Overstreet <[email protected]>
1 parent 54429c9 commit 9667214

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/bcachefs/buckets.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1465,7 +1465,7 @@ int bch2_trans_mark_dev_sbs_flags(struct bch_fs *c,
14651465
for_each_online_member(c, ca) {
14661466
int ret = bch2_trans_mark_dev_sb(c, ca, flags);
14671467
if (ret) {
1468-
bch2_dev_put(ca);
1468+
percpu_ref_put(&ca->io_ref);
14691469
return ret;
14701470
}
14711471
}

0 commit comments

Comments
 (0)