]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
drivers: lustre: obdclass: simplify unregister_shrinker() usage
authorAliaksei Karaliou <akaraliou.dev@gmail.com>
Sat, 23 Dec 2017 11:13:16 +0000 (14:13 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jan 2018 15:03:45 +0000 (16:03 +0100)
commita8753f02eb65acc8490256ae7a632451be68006b
tree48354b3d9be8b770fa48f16182ed076b87a461b3
parent915fd1c2d1c4b05efda7975f992d54244178bc93
drivers: lustre: obdclass: simplify unregister_shrinker() usage

lu_global_fini() explicitly uses knowledge about shrinker's
internals to make decision about calling of unregister_shrinker().
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>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/obdclass/lu_object.c