f2fs: fix write pointers on zoned device after roll forward
[ Upstream commit 9dad4d964291295ef48243d4e03972b85138bc9f ] 1. do roll forward recovery 2. update current segments pointers 3. fix the entire zones' write pointers 4. do checkpoint Reviewed-by: Daeho Jeong <daehojeong@google.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Родитель
2ed3db8991
Коммит
6941fe8d94
|
@ -871,6 +871,8 @@ skip:
|
|||
if (!err && fix_curseg_write_pointer && !f2fs_readonly(sbi->sb) &&
|
||||
f2fs_sb_has_blkzoned(sbi)) {
|
||||
err = f2fs_fix_curseg_write_pointer(sbi);
|
||||
if (!err)
|
||||
err = f2fs_check_write_pointer(sbi);
|
||||
ret = err;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче