raid5: fix to detect failure of register_shrinker
authorChao Yu <yuchao0@huawei.com>
Tue, 20 Sep 2016 02:33:57 +0000 (10:33 +0800)
committerShaohua Li <shli@fb.com>
Wed, 21 Sep 2016 16:09:44 +0000 (09:09 -0700)
commit6a0f53ff351dfd10e74752e57b9c27d3397a3c4d
tree696fbffa8a7082f4c348a0244922ff4bace4594e
parent90bcf1338193da4c87fb7492c716f225b907acf4
raid5: fix to detect failure of register_shrinker

register_shrinker can fail after commit 1d3d4437eae1 ("vmscan: per-node
deferred work"), we should detect the failure of it, otherwise we may
fail to register shrinker after raid5 configuration was setup successfully.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid5.c