diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-02-23 15:16:41 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:53 -0400 |
commit | dab9ef0d271648c24b867059855439ec48775fc4 (patch) | |
tree | ddf192029855fb6b9498f5318e169e563397652c /fs/bcachefs/movinggc.c | |
parent | 8042b5b715e6722fb26e40724b87f93b4b777acf (diff) | |
download | lwn-dab9ef0d271648c24b867059855439ec48775fc4.tar.gz lwn-dab9ef0d271648c24b867059855439ec48775fc4.zip |
bcachefs: Add error message for some allocation failures
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/movinggc.c')
-rw-r--r-- | fs/bcachefs/movinggc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/bcachefs/movinggc.c b/fs/bcachefs/movinggc.c index e2472c19beaf..b61bbc18a0aa 100644 --- a/fs/bcachefs/movinggc.c +++ b/fs/bcachefs/movinggc.c @@ -348,8 +348,10 @@ int bch2_copygc_start(struct bch_fs *c) return -ENOMEM; t = kthread_create(bch2_copygc_thread, c, "bch-copygc/%s", c->name); - if (IS_ERR(t)) + if (IS_ERR(t)) { + bch_err(c, "error creating copygc thread: %li", PTR_ERR(t)); return PTR_ERR(t); + } get_task_struct(t); |