]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: Add a new CP flag to help fsck fix resize SPO issues
authorSahitya Tummala <stummala@codeaurora.org>
Tue, 3 Mar 2020 14:29:26 +0000 (19:59 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Apr 2020 08:36:33 +0000 (10:36 +0200)
commit85ce1eb1dc739e2b1d4ca1b6649f51ee3038b8f5
tree45c2fe224f498eac59a845625fe8d8c64ac6e660
parent04eb3b770a3bace3251fdcb22b939ab7b7f1dc51
f2fs: Add a new CP flag to help fsck fix resize SPO issues

[ Upstream commit 1be283d380bbada361d5f18958e99dd95280ba51 ]

Add and set a new CP flag CP_RESIZEFS_FLAG during
online resize FS to help fsck fix the metadata mismatch
that may happen due to SPO during resize, where SB
got updated but CP data couldn't be written yet.

fsck errors -
Info: CKPT version = 6ed7bccb
        Wrong user_block_count(2233856)
[f2fs_do_mount:3365] Checkpoint is polluted

Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/checkpoint.c
include/linux/f2fs_fs.h