Commit d8b46004 authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: Check for errors from register_shrinker()

Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 158eecb8
...@@ -448,7 +448,7 @@ int bch2_fs_btree_cache_init(struct bch_fs *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.scan_objects = bch2_btree_cache_scan;
bc->shrink.seeks = 4; bc->shrink.seeks = 4;
bc->shrink.batch = btree_pages(c) * 2; 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: out:
pr_verbose_init(c->opts, "ret %i", ret); pr_verbose_init(c->opts, "ret %i", ret);
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment