gfs2: fix to detect failure of register_shrinker
authorChao Yu <yuchao0@huawei.com>
Wed, 21 Sep 2016 17:09:40 +0000 (12:09 -0500)
committerBob Peterson <rpeterso@redhat.com>
Wed, 21 Sep 2016 17:09:40 +0000 (12:09 -0500)
commite0d735c1cc2749598f2d29f60f9a16658fd96ae9
tree93baef2e9a3f8f250a230b916550742044ccdc72
parent23e5671a79be00b2f1c895aa93ff40fb75a4647e
gfs2: 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 gfs2 module was been inited successfully.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/glock.c
fs/gfs2/main.c