Commits
![Chao Yu](https://secure.gravatar.com/avatar/ab719579213024cb1d8efb5a6f59494a.jpg?s=96&d=mm)
Chao Yu committed 8913f343cdb
mbcache: fix to detect failure of register_shrinker register_shrinker in mb_cache_create may fail due to no memory. This patch fixes to do the check of return value of register_shrinker and handle the error case, otherwise mb_cache_create may return with no error, but losing the inner shrinker. Signed-off-by: Chao Yu <yuchao0@huawei.com> Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Theodore Ts'o <tytso@mit.edu>