Skip to content

Commit b084403

Browse files
Daeho JeongJaegeuk Kim
authored andcommitted
f2fs: write missing last sum blk of file pinning section
While do not allocating a new section in advance for file pinning area, I missed that we should write the sum block for the last segment of a file pinning section. Fixes: 9703d69 ("f2fs: support file pinning for zoned devices") Signed-off-by: Daeho Jeong <daehojeong@google.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
1 parent 3bdb7f1 commit b084403

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

fs/f2fs/segment.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3559,6 +3559,8 @@ int f2fs_allocate_data_block(struct f2fs_sb_info *sbi, struct page *page,
35593559
if (segment_full) {
35603560
if (type == CURSEG_COLD_DATA_PINNED &&
35613561
!((curseg->segno + 1) % sbi->segs_per_sec)) {
3562+
write_sum_page(sbi, curseg->sum_blk,
3563+
GET_SUM_BLOCK(sbi, curseg->segno));
35623564
reset_curseg_fields(curseg);
35633565
goto skip_new_segment;
35643566
}

0 commit comments

Comments
 (0)