summaryrefslogtreecommitdiff
path: root/fs/bcachefs/btree_cache.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2020-11-15 16:31:58 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:47 -0400
commitd8b46004648c66dbde5d35eed8e3939987d7a833 (patch)
treef2c7531e8485995aabff36555540335b7aa4af46 /fs/bcachefs/btree_cache.c
parent158eecb88ed3100bef01917913a26e9aad152417 (diff)
downloadlwn-d8b46004648c66dbde5d35eed8e3939987d7a833.tar.gz
lwn-d8b46004648c66dbde5d35eed8e3939987d7a833.zip
bcachefs: Check for errors from register_shrinker()
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_cache.c')
-rw-r--r--fs/bcachefs/btree_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/btree_cache.c b/fs/bcachefs/btree_cache.c
index 9d8c73ec57d3..2c8f67fabc5a 100644
--- a/fs/bcachefs/btree_cache.c
+++ b/fs/bcachefs/btree_cache.c
@@ -448,7 +448,7 @@ int bch2_fs_btree_cache_init(struct bch_fs *c)
bc->shrink.scan_objects = bch2_btree_cache_scan;
bc->shrink.seeks = 4;
bc->shrink.batch = btree_pages(c) * 2;
- register_shrinker(&bc->shrink, "%s/btree_cache", c->name);
+ ret = register_shrinker(&bc->shrink, "%s/btree_cache", c->name);
out:
pr_verbose_init(c->opts, "ret %i", ret);
return ret;