f2fs: remove the unused compr parameter
authorWang Xiaojun <wangxiaojun11@huawei.com>
Tue, 16 Jun 2020 02:39:24 +0000 (10:39 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 8 Jul 2020 04:51:46 +0000 (21:51 -0700)
The parameter compr is unused in the f2fs_cluster_blocks function
so we no longer need to pass it as a parameter.

Signed-off-by: Wang Xiaojun <wangxiaojun11@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/compress.c

index 5643aa2b8377e824bfdb26e840ff53b409440111..cde6868c77bb7b0e66c00c6ed67213868f293604 100644 (file)
@@ -821,7 +821,7 @@ static int f2fs_compressed_blocks(struct compress_ctx *cc)
 }
 
 /* return # of valid blocks in compressed cluster */
-static int f2fs_cluster_blocks(struct compress_ctx *cc, bool compr)
+static int f2fs_cluster_blocks(struct compress_ctx *cc)
 {
        return __f2fs_cluster_blocks(cc, false);
 }
@@ -835,7 +835,7 @@ int f2fs_is_compressed_cluster(struct inode *inode, pgoff_t index)
                .cluster_idx = index >> F2FS_I(inode)->i_log_cluster_size,
        };
 
-       return f2fs_cluster_blocks(&cc, false);
+       return f2fs_cluster_blocks(&cc);
 }
 
 static bool cluster_may_compress(struct compress_ctx *cc)
@@ -886,7 +886,7 @@ static int prepare_compress_overwrite(struct compress_ctx *cc,
        bool prealloc;
 
 retry:
-       ret = f2fs_cluster_blocks(cc, false);
+       ret = f2fs_cluster_blocks(cc);
        if (ret <= 0)
                return ret;