f2fs: remove unused parameter of f2fs_put_rpages_mapping()
authorChao Yu <yuchao0@huawei.com>
Mon, 8 Jun 2020 12:03:17 +0000 (20:03 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 9 Jun 2020 03:37:53 +0000 (20:37 -0700)
Just cleanup, no logic change.

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

index a53578a892112f382970fcf755fbab95db0430b0..1e02a8c106b0ac00b11291012a43c7ea4ca6f748 100644 (file)
@@ -89,8 +89,7 @@ static void f2fs_unlock_rpages(struct compress_ctx *cc, int len)
        f2fs_drop_rpages(cc, len, true);
 }
 
-static void f2fs_put_rpages_mapping(struct compress_ctx *cc,
-                               struct address_space *mapping,
+static void f2fs_put_rpages_mapping(struct address_space *mapping,
                                pgoff_t start, int len)
 {
        int i;
@@ -942,7 +941,7 @@ retry:
 
                if (!PageUptodate(page)) {
                        f2fs_unlock_rpages(cc, i + 1);
-                       f2fs_put_rpages_mapping(cc, mapping, start_idx,
+                       f2fs_put_rpages_mapping(mapping, start_idx,
                                        cc->cluster_size);
                        f2fs_destroy_compress_ctx(cc);
                        goto retry;
@@ -977,7 +976,7 @@ retry:
 unlock_pages:
        f2fs_unlock_rpages(cc, i);
 release_pages:
-       f2fs_put_rpages_mapping(cc, mapping, start_idx, i);
+       f2fs_put_rpages_mapping(mapping, start_idx, i);
        f2fs_destroy_compress_ctx(cc);
        return ret;
 }