summaryrefslogtreecommitdiff
path: root/fs/f2fs/segment.h
diff options
context:
space:
mode:
authorFan Li <fanofcode.li@samsung.com>2013-10-29 16:21:47 +0800
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2013-10-30 12:17:58 +0900
commit9a47938b226cc2b8e2afd72b0f1ca1a7e1367cf5 (patch)
tree8c3ae3af4617422cf4b25f04759584baccc43072 /fs/f2fs/segment.h
parentcc3de6a3acce264f4eb0b5bf552478e5f1380bba (diff)
downloadlwn-9a47938b226cc2b8e2afd72b0f1ca1a7e1367cf5.tar.gz
lwn-9a47938b226cc2b8e2afd72b0f1ca1a7e1367cf5.zip
f2fs: change the method of calculating the number summary blocks
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: Fan Li <fanofcode.li@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
Diffstat (limited to 'fs/f2fs/segment.h')
0 files changed, 0 insertions, 0 deletions