Skip to content

Commit 9c30df7

Browse files
author
Jaegeuk Kim
committed
f2fs: flush dirty meta pages when flushing them
Let's guarantee flusing dirty meta pages to avoid infinite loop. Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent 1ae18f7 commit 9c30df7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fs/f2fs/checkpoint.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,6 +1266,9 @@ void f2fs_wait_on_all_pages(struct f2fs_sb_info *sbi, int type)
12661266
if (unlikely(f2fs_cp_error(sbi)))
12671267
break;
12681268

1269+
if (type == F2FS_DIRTY_META)
1270+
f2fs_sync_meta_pages(sbi, META, LONG_MAX,
1271+
FS_CP_META_IO);
12691272
io_schedule_timeout(DEFAULT_IO_TIMEOUT);
12701273
}
12711274
finish_wait(&sbi->cp_wait, &wait);

0 commit comments

Comments
 (0)