From: Chao Yu Date: Wed, 25 Mar 2020 09:25:07 +0000 (+0800) Subject: f2fs: clean up dic->tpages assignment X-Git-Tag: v5.7-rc1~60^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=80d0d45ab5b23361b3394e89768afc2d076a5950;p=thirdparty%2Fkernel%2Flinux.git f2fs: clean up dic->tpages assignment Just cleanup, no logic change. Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/compress.c b/fs/f2fs/compress.c index c7284dd7d52fa..ca4f54fbbd2e9 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: