diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-04-06 16:16:32 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-04-13 21:10:24 -0400 |
commit | 844721635c1c8e7e43fb546052a659bfc92ed99d (patch) | |
tree | 5007b56b87df050e6b5a05a3049826680705b0ed /c_src/cmd_device.c | |
parent | ad3875d1d9907bab0430c45ffa3b2dd39107106b (diff) |
Update bcachefs sources to 2f9361370129 bcachefs: Improve opts.degraded
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'c_src/cmd_device.c')
-rw-r--r-- | c_src/cmd_device.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/c_src/cmd_device.c b/c_src/cmd_device.c index a06a3b31..1fa87a18 100644 --- a/c_src/cmd_device.c +++ b/c_src/cmd_device.c @@ -525,7 +525,7 @@ static int cmd_device_resize(int argc, char *argv[]) if (resize) die("confused: more than one online device?"); resize = ca; - percpu_ref_get(&resize->io_ref); + percpu_ref_get(&resize->io_ref[READ]); } u64 nbuckets = size / le16_to_cpu(resize->mi.bucket_size); @@ -538,7 +538,7 @@ static int cmd_device_resize(int argc, char *argv[]) if (ret) fprintf(stderr, "resize error: %s\n", bch2_err_str(ret)); - percpu_ref_put(&resize->io_ref); + percpu_ref_put(&resize->io_ref[READ]); bch2_fs_stop(c); } return 0; @@ -622,7 +622,7 @@ static int cmd_device_resize_journal(int argc, char *argv[]) if (resize) die("confused: more than one online device?"); resize = ca; - percpu_ref_get(&resize->io_ref); + percpu_ref_get(&resize->io_ref[READ]); } u64 nbuckets = size / le16_to_cpu(resize->mi.bucket_size); @@ -632,7 +632,7 @@ static int cmd_device_resize_journal(int argc, char *argv[]) if (ret) fprintf(stderr, "resize error: %s\n", bch2_err_str(ret)); - percpu_ref_put(&resize->io_ref); + percpu_ref_put(&resize->io_ref[READ]); bch2_fs_stop(c); } return 0; |