mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
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>
This commit is contained in:
parent
6a881d4790
commit
cd3a848cd1
1 changed files with 3 additions and 7 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue