Skip to content

Commit feb077c

Browse files
author
Kent Overstreet
committed
bcachefs: Fix refcount put in sb_field_resize error path
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
1 parent 4a8521b commit feb077c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/bcachefs/super-io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ struct bch_sb_field *bch2_sb_field_resize_id(struct bch_sb_handle *sb,
232232
struct bch_sb_handle *dev_sb = &ca->disk_sb;
233233

234234
if (bch2_sb_realloc(dev_sb, le32_to_cpu(dev_sb->sb->u64s) + d)) {
235-
percpu_ref_put(&ca->ref);
235+
percpu_ref_put(&ca->io_ref);
236236
return NULL;
237237
}
238238
}

0 commit comments

Comments
 (0)