]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
md/raid5: simplify uninitialization of shrinker
authorAliaksei Karaliou <akaraliou.dev@gmail.com>
Sat, 23 Dec 2017 18:20:31 +0000 (21:20 +0300)
committerShaohua Li <sh.li@alibaba-inc.com>
Sat, 17 Feb 2018 20:35:34 +0000 (12:35 -0800)
commit565e0450129647df5112bff3df3ffd02b0c08e32
treea38e3b14354b597b2c31dc192915c27c8811f8f5
parentc786427f57b6dc4f56f9a84da52b41216e94f125
md/raid5: simplify uninitialization of shrinker

Don't use shrinker.nr_deferred to check whether shrinker was
initialized or not. Now this check was integrated into
unregister_shrinker(), so it is safe to call it against
unregistered shrinker.

Signed-off-by: Aliaksei Karaliou <akaraliou.dev@gmail.com>
Signed-off-by: Shaohua Li <sh.li@alibaba-inc.com>
drivers/md/raid5.c