staging: erofs: clean up internal.h
[sfrench/cifs-2.6.git] / drivers / staging / erofs / super.c
index 54494412eba4189fa64844d5a4ef207e5ac74e51..55f51d2b3930e9f55151c59109d8bf2d10cff885 100644 (file)
@@ -1,14 +1,10 @@
-// SPDX-License-Identifier: GPL-2.0
+// SPDX-License-Identifier: GPL-2.0-only
 /*
  * linux/drivers/staging/erofs/super.c
  *
  * Copyright (C) 2017-2018 HUAWEI, Inc.
  *             http://www.huawei.com/
  * Created by Gao Xiang <gaoxiang25@huawei.com>
- *
- * This file is subject to the terms and conditions of the GNU General Public
- * License.  See the file COPYING in the main directory of the Linux
- * distribution for more details.
  */
 #include <linux/module.h>
 #include <linux/buffer_head.h>
@@ -215,7 +211,7 @@ static void default_options(struct erofs_sb_info *sbi)
 {
        /* set up some FS parameters */
 #ifdef CONFIG_EROFS_FS_ZIP
-       sbi->max_sync_decompress_pages = DEFAULT_MAX_SYNC_DECOMPRESS_PAGES;
+       sbi->max_sync_decompress_pages = 3;
 #endif
 
 #ifdef CONFIG_EROFS_FS_XATTR
@@ -554,16 +550,11 @@ static struct dentry *erofs_mount(
                &priv, erofs_fill_super);
 }
 
-static void erofs_kill_sb(struct super_block *sb)
-{
-       kill_block_super(sb);
-}
-
 static struct file_system_type erofs_fs_type = {
        .owner          = THIS_MODULE,
        .name           = "erofs",
        .mount          = erofs_mount,
-       .kill_sb        = erofs_kill_sb,
+       .kill_sb        = kill_block_super,
        .fs_flags       = FS_REQUIRES_DEV,
 };
 MODULE_ALIAS_FS("erofs");