diff options
author | Chao Yu <yuchao0@huawei.com> | 2020-03-25 17:25:07 +0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2020-04-03 10:21:31 -0700 |
commit | 80d0d45ab5b23361b3394e89768afc2d076a5950 (patch) | |
tree | 96b1047c5503c86d501c72eb8fb8e9f24de57fd4 /fs/f2fs | |
parent | 50cfa66f0de02eff30fb81bdc878bb986cf3aff3 (diff) | |
download | linux-80d0d45ab5b23361b3394e89768afc2d076a5950.tar.gz |
f2fs: clean up dic->tpages assignment
Just cleanup, no logic change.
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs')
-rw-r--r-- | fs/f2fs/compress.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c index c7284dd7d52f..ca4f54fbbd2e 100644 --- a/fs/f2fs/compress.c +++ b/fs/f2fs/compress.c @@ -1308,20 +1308,16 @@ struct decompress_io_ctx *f2fs_alloc_dic(struct compress_ctx *cc) goto out_free; for (i = 0; i < dic->cluster_size; i++) { - if (cc->rpages[i]) + if (cc->rpages[i]) { + dic->tpages[i] = cc->rpages[i]; continue; + } dic->tpages[i] = f2fs_grab_page(); if (!dic->tpages[i]) goto out_free; } - for (i = 0; i < dic->cluster_size; i++) { - if (dic->tpages[i]) - continue; - dic->tpages[i] = cc->rpages[i]; - } - return dic; out_free: |