diff options
author | Kent Overstreet | 2024-05-03 17:13:21 -0400 |
---|---|---|
committer | Kent Overstreet | 2024-05-06 10:58:17 -0400 |
commit | feb077c1774e559cddfc41ef26c864780d158fe2 (patch) | |
tree | 486559d2ba1d022ef2efd4ba7df5d0744b5a0dbe | |
parent | 4a8521b6bb81abba9d80d60b80908c77c9236ced (diff) |
bcachefs: Fix refcount put in sb_field_resize error path
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/super-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/super-io.c b/fs/bcachefs/super-io.c index 08ea3dbbbe97..e7527d551e3c 100644 --- a/fs/bcachefs/super-io.c +++ b/fs/bcachefs/super-io.c @@ -232,7 +232,7 @@ struct bch_sb_field *bch2_sb_field_resize_id(struct bch_sb_handle *sb, struct bch_sb_handle *dev_sb = &ca->disk_sb; if (bch2_sb_realloc(dev_sb, le32_to_cpu(dev_sb->sb->u64s) + d)) { - percpu_ref_put(&ca->ref); + percpu_ref_put(&ca->io_ref); return NULL; } } |