On Fri, Aug 07, 2020 at 10:01:39PM +0800, brookxu wrote: > It might be better to adjust the code in two places: > 1. Determine whether grp is currupt or not should be placed first. > 2. (cr<=2 && free <ac->ac_g_ex.fe_len)should may belong to the crx > strategy, and it may be more appropriate to put it in the > subsequent switch statement block. For cr1, cr2, the conditions > in switch potentially realize the above judgment. For cr0, we > should add (free <ac->ac_g_ex.fe_len) judgment, and then delete > (free / fragments) >= ac->ac_g_ex.fe_len), because cr0 returns > true by default. > > Signed-off-by: Chunguang Xu <brookxu@xxxxxxxxxxx> Thanks, applied. - Ted