staging: erofs: sunset erofs_workstation_cleanup_all
authorGao Xiang <gaoxiang25@huawei.com>
Wed, 16 Jan 2019 08:59:52 +0000 (16:59 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jan 2019 09:34:01 +0000 (10:34 +0100)
There is only one user calling erofs_workstation_cleanup_all,
and it is no likely that more users will use in that way
in the future.

Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/internal.h
drivers/staging/erofs/super.c

index c3de24e..80cc09e 100644 (file)
@@ -283,11 +283,6 @@ extern int erofs_register_workgroup(struct super_block *sb,
 extern unsigned long erofs_shrink_workstation(struct erofs_sb_info *sbi,
        unsigned long nr_shrink, bool cleanup);
 
-static inline void erofs_workstation_cleanup_all(struct super_block *sb)
-{
-       erofs_shrink_workstation(EROFS_SB(sb), ~0UL, true);
-}
-
 extern void erofs_workgroup_free_rcu(struct erofs_workgroup *grp);
 
 #ifdef EROFS_FS_HAS_MANAGED_CACHE
index 45c7f6d..69e1840 100644 (file)
@@ -494,7 +494,8 @@ static void erofs_put_super(struct super_block *sb)
        mutex_lock(&sbi->umount_mutex);
 
 #ifdef CONFIG_EROFS_FS_ZIP
-       erofs_workstation_cleanup_all(sb);
+       /* clean up the compression space of this sb */
+       erofs_shrink_workstation(EROFS_SB(sb), ~0UL, true);
 #endif
 
        erofs_unregister_super(sb);