diff options
author | Chao Yu <yuchao0@huawei.com> | 2016-08-31 11:44:36 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2016-08-31 11:44:36 -0400 |
commit | 8913f343cdb568222c95afe3cad78aee1a4df56b (patch) | |
tree | 8a66c63713f0a8c284e1029fd2504164c0050d59 /fs/ext4 | |
parent | 14fbd4aa613bd5110556c281799ce36dc6f3ba97 (diff) | |
download | linux-8913f343cdb568222c95afe3cad78aee1a4df56b.tar.bz2 |
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>
Diffstat (limited to 'fs/ext4')
0 files changed, 0 insertions, 0 deletions