Skip to content

Commit 80d0d45

Browse files
chaseyuJaegeuk Kim
authored andcommitted
f2fs: clean up dic->tpages assignment
Just cleanup, no logic change. Signed-off-by: Chao Yu <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent 50cfa66 commit 80d0d45

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

fs/f2fs/compress.c

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,20 +1308,16 @@ struct decompress_io_ctx *f2fs_alloc_dic(struct compress_ctx *cc)
13081308
goto out_free;
13091309

13101310
for (i = 0; i < dic->cluster_size; i++) {
1311-
if (cc->rpages[i])
1311+
if (cc->rpages[i]) {
1312+
dic->tpages[i] = cc->rpages[i];
13121313
continue;
1314+
}
13131315

13141316
dic->tpages[i] = f2fs_grab_page();
13151317
if (!dic->tpages[i])
13161318
goto out_free;
13171319
}
13181320

1319-
for (i = 0; i < dic->cluster_size; i++) {
1320-
if (dic->tpages[i])
1321-
continue;
1322-
dic->tpages[i] = cc->rpages[i];
1323-
}
1324-
13251321
return dic;
13261322

13271323
out_free:

0 commit comments

Comments
 (0)