Yue Hu 4ef4bfee7a
erofs: clear compacted_2b if compacted_4b_initial > totalidx
Currently, the whole indexes will only be compacted 4B if
compacted_4b_initial > totalidx. So, the calculated compacted_2b
is worthless for that case. It may waste CPU resources.

No need to update compacted_4b_initial as mkfs since it's used to
fulfill the alignment of the 1st compacted_2b pack and would handle
the case above.

We also need to clarify compacted_4b_end here. It's used for the
last lclusters which aren't fitted in the previous compacted_2b
packs.

Some messages are from Xiang.

Link: https://lore.kernel.org/r/20210914035915.1190-1-zbestahu@gmail.com
Signed-off-by: Yue Hu <huyue2@yulong.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: Chao Yu <chao@kernel.org>
[ Gao Xiang: it's enough to use "compacted_4b_initial < totalidx". ]
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Signed-off-by: Forenche <prahul2003@gmail.com>
2022-06-22 14:21:45 +05:30
..
2019-10-11 19:10:13 +02:00
2020-04-03 08:18:27 +02:00
2020-07-29 09:11:55 +02:00
2019-08-06 19:05:23 +02:00
2020-06-25 15:41:52 +02:00
2019-12-05 15:48:19 +01:00
2022-06-07 23:00:51 +05:30
2020-07-24 10:08:39 +02:00
2019-12-17 21:13:36 +01:00
2022-04-02 13:21:35 +05:30
2020-07-01 12:51:55 +02:00
2022-04-02 12:30:38 +05:30
2020-08-13 13:44:59 -07:00
2022-04-02 13:39:53 +05:30
2020-05-20 12:15:34 +02:00
2020-03-11 18:02:43 +01:00
2022-04-02 13:31:28 +05:30
2020-08-13 13:44:59 -07:00
2020-05-03 08:51:19 +02:00