• F
    f2fs: change the method of calculating the number summary blocks · 9a47938b
    Fan Li 提交于
    npages_for_summary_flush uses (SUMMARY_SIZE + 1) as the size of a f2fs_summary
    while its actual size is  SUMMARY_SIZE. So the result sometimes is bigger than
    actual number by one, which causes checkpoint can't be written into disk
    contiguously, and sometimes summary blocks can't be compacted like they should.
    Besides, when writing summary blocks into pages, if remain space in a page
    isn't big enough for one f2fs_summary, it will be left unused, current code
    seems not to take it into account.
    Signed-off-by: NFan Li <fanofcode.li@samsung.com>
    Signed-off-by: NJaegeuk Kim <jaegeuk.kim@samsung.com>
    9a47938b
segment.c 45.8 KB